I already moved the C# script into the Standard Assets folder and I still get this error:
Here is the line of coding causing the problem:
I have tried all kinda of different GetComponent iterations, and I still come up with the exact same error.
Thanks in advance, Jason
Mixing JS and c# is not recommended unless you keep your code interdependencies very clean. C# gets compiled first and so don't have awareness of JS scripts.
Switching your code to C# is recommended. You also get extra candy like auto complete.,Mixing JS and c# is usually a nightmare. c# gets compiled first and so don't have awareness of JS scripts.
So ask yourself if you want to make the effort and switch over to CS or keep banging your head.,Is switching to c# an option ? Mixing JS and c# is usually a nightmare. c# gets compiled first and so don't have awareness of JS scripts.
answered May 23 '11 at 08:33 PM
I was only able to get it working if I did one of two things:
1) Move the .js outside of standard assets and keep the C# script in the standard assets folder. (this caused more errors with objects wanting to reference the .js so this was no good.
2)I had to create a function in the seeker.cs file to do what I was doing, and use
Hope that helps someone.
answered Jan 31 '11 at 08:57 AM