- Home /
Converting project from Unity 3.3 to 3.4 ERRORS
I just installed Unity 3.4 on my new Mac ( Lion OS ). When i opened there Unity project from Unity 3.3 ( iphone game working without any errors on 3.3 ) it gives me over 60 errors. Very strange errors. Like gameObject is not member of Object. Transform is not member of object etc etc. I am totaly confused what is the issue.
I of course installed old version of Unity and game works without any issues. But thing is i cannot use old version of Unity, because it doesnt work with new version of Xcode ( 4.2 etc, from what i know ). And i need to install new Xcode since Lion doesnt cope with old versions of Xcode ( 3.2.5 i was using ).
So the thing is i need to use new version of Unity. Anyone having any idea what can be causing errors when translating from older Unity to newer version with Iphone game ?
Thanks for any reply.
Are your script written in JS or C#? I guess JS...
I might be wrong, but if I recall, JS script are now 'strict' by default. Therefore al variables need to be correctly typed.
i got both js and c#. I always properly declare variables with type. But if that could be issue, i will have a look into it.
But as i said most of the errors are in js scripts. And those are things like transform is not member of object. But of course it is member of object since its gameobject and it works in 3.3 without any issue. So thats weird.
As I said this is related to strict JS. $$anonymous$$ost Unity method returns object of type Object or Component such as FindObject and GetComponent. Therefore, you need to cast the return value to make it work.
Not casting was allowed in previous version of Unity (relaying on dynamic typing), but not in strict JS which now is the regular setting of scripts.