- Home /
Search game objects with script
Hi, is there anyway to select a script and see every gameObject that has that script attached to it?
Comment
Best Answer
Answer by robertbu · Sep 18, 2013 at 06:36 PM
Are you talking about runtime or edit time. At runtime, you can use Object.FindObjectsOfType(). At edit time, you can type the name of the script into the search box in the upper right corner of the Heirarchy window.
Thanks, I actually did not know I could search for the scripts name in the Heirarchy search box :)
I'm trying this again and it's not working anymore, also, anyway to do it for tags? (Hierarchy search box)