Quantcast
Channel: Questions in topic: "gameobject.tag"
Viewing all articles
Browse latest Browse all 95

How to GameObject.FindGameObjectsWithTag within children of a specific GameObject?

$
0
0
I want to get a collection (List or GameObject[]... whatever I can iterate through) of the children inside a specific GameObject with a Tag assigned to them. But I'm only able to run FindGameObjectsWithTag in a global scope... grabbing all GO's with the desired Tag string. // What the documentation and examples out there says: GameObject[] actors= GameObject.FindGameObjectsWithTag("Actor"); // What I would like to be able to do: GameObject[] actors= actorsHolder.FindGameObjectsWithTag("Actor"); Thanks in advance people. Peace out!

Viewing all articles
Browse latest Browse all 95

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>