- Home /
Question by
Dave 3 · Jun 24, 2010 at 06:38 PM ·
javascriptvariableshashtable
Publically readable hashtables
What is the best way to access hashtables from other scripts? Assuming I'm using javascript should I just declare the hashtable as a static var and simply refer to it the same way as I would other public variables, or is there a better way to do it?
Thanks, Dave
Comment
Best Answer
Answer by Tetrad · Jun 24, 2010 at 06:48 PM
You wouldn't want to declare it as static. Just doing var mytable : Hashtable
should make it a public member variable by default and therefore accessible through other scripts.
Your answer
![](https://koobas.hobune.stream/wayback/20220613062934im_/https://answers.unity.com/themes/thub/images/avi.jpg)