|
How would I go about accessing variables in another script? I tried this:
But Unity gave me this error: The name OtherScript does not denote a valid type Why? It seems perfectly valid to me! Any help appreciated, because I'm totally stuck with a script that should work, that's not working. Thanks in advance... Elliot Bonneville EDIT:
(comments are locked)
|
|
"OtherScript" is the name of your other script. You don't literally type OtherScript unless your other script is actually and for real called OtherScript.js. Otherwise you use the script name. It will show up in the inspector once you fix any errors you have. @Eric5h5 Thanks...
Mar 25 '10 at 01:48 AM
e.bonneville
Duh... Silly me! I knew that
Mar 25 '10 at 01:49 AM
e.bonneville
(comments are locked)
|
|
From the Unity Scripting Reference:
(comments are locked)
|
