So I built my game on my PC and I'm ready to start testing it on my ipod touch. So I installed unity iOS on my mac laptop and copied my project folder over. When I try to build for iOS I get errors on things that seem like they should really work just fine like:
'enabled' is not a member of 'UnityEngine.Component'
'isKinematic' is not a member of 'UnityEngine.Component'
any one have any idea what could be happening? Thank you!
asked Apr 16 '11 at 04:17 AM
There's no dynamic typing on iOS. Put "#pragma strict" in all your scripts. There are already many many answers for the question of how to deal with no dynamic typing with GetComponent etc.; should be easy to find with a search.
answered Apr 16 '11 at 07:21 AM
sometimes some of the normal codes don't work on unity iphone. i saw this back in 1.7 when i was working in an IOS development project. you can adjust the .net support level in player settings. set it to the full support (not subset) and it should works fine.
posting some pieces of the code that get error could be helpful to get better answers too.
answered Apr 16 '11 at 04:49 AM
Here is a snip of code form one of the problem scripts that have the enabled not in unityengine.component
where GetComponent(ClickSpawn).enabled = false; is the problem line this is deactivating a code that allows spawning an object when the mouse clicks
answered Apr 16 '11 at 05:22 AM