iPhone "is not a member of" errors

I am having tons of fun trying to get Mars Explorer to run on an iPhone, but am experiencing hundreds of “such-and-such is not a member of UnityEngine.Component / Object” errors.

Does Unity for iPhone require each and every JS variable to be explicitly defined or something?

If so, what would be the best way to perform the following code? (Don’t need to use a variable, this only gets called once).
GetComponent(ParticleEmitter).emit = true;

Also, is there any iPhone specific documentation / list of differences in iPhone and desktop Unity? How many other things like this are waiting to get me? :slight_smile:

You can’t use dynamic typing. This is like if you put “#pragma strict” at the top of all your scripts.

var pe : ParticleEmitter = GetComponent(ParticleEmitter);
pe.emit = true;

–Eric

ouch… Wish I would have known that several months ago :slight_smile:

Guess I’ll get to work!