How To Get Game Objects With A Specific Script Attached – Unity

If you’ve ever wanted to grab all of the game objects in your Unity scene with a specific script attached and refer to them in your code, it’s quite straight forward. You can also get a single game object the same way.

View this article on the original website