Quantcast
Channel: Answers for "GameObject.Find() work on inactive objects"
Viewing all articles
Browse latest Browse all 45

Answer by Antony Blackett

$
0
0
Here's how you do it. Resources.FindObjectsOfTypeAll(typeof(GameObject)) as GameObject[]; Note this can also return prefabs not just object instances in the scene so be careful when using it at edit time.

Viewing all articles
Browse latest Browse all 45

Trending Articles



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