Hi,
I have just converted a project from Unity iPhone 1.7 to Unity 3 Pro. I am getting this exception when I run the game:
ArgumentException: get_value can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function. TankMovement..ctor () PlayerMovement..ctor ()
Double clicking the error message doesn't take me anywhere in the code. It looks like the error is complaining about a constructor, but I haven't specified any in those classes, and there aren't any other parent classes other than MonoBehaviour. I also went so far as to comment out my Start methods, and all the contents of any setXxxx methods from those classes, but nothing changed.
I know this is a pretty open ended question, so sorry for that, but does anyone have any insight into what this error really means, and where the problem is likely to be situated (certain kind of functions for example)?
The above mentioned classes are both C#, as are most my code.
Many thanks,
Pete.