0
\$\begingroup\$

I'm using Unity 2017.03.0f3 and I have a scripts folder with scripts (C#).

Suppose I forget, or am working on someone else's project:

How do I know exactly which scripts are attached to what GameObjects or PreFabs, without clicking and going through all the Hierarchy objects please, and by first clicking on a script in the Project view?

I hope that's specific enough.

\$\endgroup\$
  • \$\begingroup\$ I think the closest you can get to what you are looking for is by right clicking the script and choosing "Find References in Scene" \$\endgroup\$ – Fabio S. Jan 25 '18 at 17:28
1
\$\begingroup\$

The hierarchy search allows you to filter by component. You'll need to type the entire name of the component or script. It will gray out the other objects and show only the objects with that script attached in the hierarchy. More details here: http://blog.theknightsofunity.com/can-search-scene-objects-components-type/

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.