In Unity: How often do you guys use "Tag", when parsing for objects? Is there a perf hit?
-
-
Replying to @DaveVoyles
@DaveVoyles iirc tag is fast, search by name is slow (tags are in a dictionary)1 reply 0 retweets 1 like -
Replying to @Fortress_Craft
@Fortress_Craft Ah ok. So stick to tags as opposed to name1 reply 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles Or only search for names before the game starts!1 reply 0 retweets 0 likes -
Replying to @Fortress_Craft
@Fortress_Craft So set references in Awake? Otherwise I'd imagine it would come to a crawl after a while2 replies 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles Just avoid dozens of them every frame! Even more so on mobile1 reply 0 retweets 0 likes
Replying to @Fortress_Craft
@Fortress_Craft got it, thanks. I guess that could be an issue when searching for multiple targets (missiles, ray traces)
6:29 AM - 5 Dec 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.