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

Answer by CarterG81

> Does GameObject.Find() work on> inactive objects? If not, how do you> find and reference inactive objects. GameObject.Find() is only useful (good) in small scenes. Best practice is to avoid...

View Article


Answer by bburtson09

You Are looking for Resources.FindObjectsOfTypeAll(), as Noob_vulcan said. I wrote some test code and found many solutions, I will share 2 of my solutions the first being a broad implementation that is...

View Article


Answer by Neonalig

Probably a bit late (6 years late), but for any people viewing this now, You can do: UnityEngine.Resources.FindAllObjectsOfType<"object type here">(); Just replace "object type here" with your...

View Article

Answer by peterthepeter140

I was looking for a way to use "FindGameObjectWithTag(tag)" with an inactive GameObject and didn't find any easy alternatives but i came up with this solution: public GameObject Item; public float...

View Article

Answer by Neonalig

GameObject.Find() only returns active objects. for unactive objects, use this: Resources.FindObjectsOfTypeAll(typeof(YOURTYPEHERE)); so, lets say you want to find all of a certain tag, that aren't...

View Article

Browsing all 45 articles
Browse latest View live


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