|
Making an iOS game. Can I use GameObject.FindGameObjectsWithTag inside a function Update, or is it that cpu intensive that it will chew my fps and/or decrease the battery levels too fast?
(comments are locked)
|
|
It shouldn't ruin your performance, no. Unlike FindGameObjectWithName, FindGameObjectsWithTag looks through your tags first (which shouldn't be that many) and then returns all said objects. We're using it and we're not seeing any significant drawbacks. That being said, if there's a way to do it that doesn't involve the update function you should probably do that instead. Ahh of course, it would check just my Tags list, so it shouldn't be that much of a burden for the cpu. I'm actually using it in other functions called at certain moments but I'm having some minor problems and just wanted to know if function Update could be an alternative. Thanks azzogat!
Jan 16 '11 at 10:56 AM
schwertfisch
(comments are locked)
|
