How to find out a script is used by which game objects

· 1 min read
How to find out a script is used by which game objects

Our game objects might have lots of scripts, game objects and scenes, we probably can't remember which script is being added to which game object. Unity does provide a built-in function that can help us easily identify those game objects or scenes.

Select target script, right click Find Reference in Scene:

The output will be:

As you can see, there is only one GameObject in the hierarchy owns the script SoundManager.cs.