Quantcast
Channel: Answers for "Declare Component type in GetComponent"
Viewing all articles
Browse latest Browse all 4

Answer by Bunny83

$
0
0
There are only a few possibilities: - The other script is C# and therefore can't be accessed by UnityScript unless it's compiled first (so the c# script is in an earlier compilation group). - Both scripts are UnityScript (i guess they are after your reply) and you placed them in seperate compiling groups, so they can't see each other. - The last thing would be you mistyped the name. The script name has to be exactly the same. It's case-sensitive `TapMoveDragLook` would not be the same as `TapMoveDraglook` for example. The compiling groups can be irritating when you don't know about them. Read this page carefuly: [script compilation groups][1]. [1]: http://unity3d.com/support/documentation/ScriptReference/index.Script_compilation_28Advanced29.html

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images