- Home /
for in loop in Unity iPhone?
For the love of me I can't seem to figure this one out .. I am porting my Unity project to iPhone and I can't remedy all of my for in loops.
Example :
for(v in statusReport)
v.active = false;
Error message " 'active' is not a member of 'Object' "
How do you apply strict typing to for in loops anyone? I'm stumped and I can't seem to find any clues on the documentation. Help much appreciated.
Comment
Best Answer
Answer by Mike 3 · May 05, 2010 at 02:08 PM
for (var v : GameObject in statusReport)
v.active = false;
Answer by touchgamedev · May 08, 2010 at 06:34 PM
Helped me too Mike. Thank you.
Please don't post comments as answers. Add a comment to the answer for things like this.
$$anonymous$$y apologies. I thought I had posted it as a comment.