Quantcast
Channel: Latest Questions by AaronBrownLM
Viewing all articles
Browse latest Browse all 81

Access a script that has NO class?

$
0
0
I have a script I downloaded, and it works great, however it has NO class declaration! I want to access it from another script, to change its variables, but I can't figure out how to use transform.GetComponent to access the script, because without a class delcaration, the script has no name? I tried GetComponent with its file name, but that didn't work. The script is javascript (js). I'm calling it from a C# script. Hopefully that's allowed.

Viewing all articles
Browse latest Browse all 81

Trending Articles