Hi,
Is there a way to find (in javascript) how many GameObjects with a certain tag are currently in the scene?
Or is there any way other than tags with wich I can do this. Tags seems appropriate though.
Thanks in advance.
Hi,
Is there a way to find (in javascript) how many GameObjects with a certain tag are currently in the scene?
Or is there any way other than tags with wich I can do this. Tags seems appropriate though.
Thanks in advance.
http://unity3d.com/support/documentation/ScriptReference/GameObject.FindGameObjectsWithTag.html and do .Length on the result of that