Quantcast
Channel: Questions in topic: "findgameobjectswithtag"
Viewing all articles
Browse latest Browse all 230

What's the most efficient way of finding child objects at runtime?

$
0
0
I have a prefab that will be added to X amount of objects, and these prefabs have Y amount of child objects. These child objects have a few objects under them too. What I would like to is to be able to access them locally per gameobject I instantiate them at like this: Prefabname.Childname.ChildsChildname.TheObject.setActive(true); Is this possible? It would save me a lot of time. Thank you very much for helping out.

Viewing all articles
Browse latest Browse all 230

Trending Articles



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