Hello, I'm having a problem with my "getcomponent" and I'm unsure what to do. Here is where it is giving me the error. This is from java script it is trying to get a class out of a c# script.
and this is the error its giving me.
Thanks if you help me.
asked Jan 15 '12 at 05:53 PM
If you have the C# script compiled earlier, then you can use
If it's not possible to have the C# script compiled earlier, then you have to do
Using strings returns Component instead of the type, but that relies on dynamic typing, so _NetworkRigidbody becomes Object instead of NetworkRigidbody, which won't work in a non-#pragma strict environment.
answered Jan 15 '12 at 06:09 PM