Search Unity

Easy script navigation?

Discussion in 'Scripting' started by dev, Feb 24, 2010.

  1. dev

    dev

    Joined:
    Feb 23, 2010
    Posts:
    37
    Hello!

    I've done some searching through the forums and docs and haven't found this.

    Is there a way to tell if I'm using a certain script in a scene? Like say I select a script in the Project pane, can I find what objects in the Hierarchy are using it (if any are)?

    Basically I'm looking for the easiest way to navigate through the different scripts I'm using in the scene.

    Thanks for any input. :)
    d
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Hi, welcome to the forum!

    There is no built-in command to do this. You might, however, be able to write an editor script that could look through objects in the scene and determine which scripts they use.
     
  3. dev

    dev

    Joined:
    Feb 23, 2010
    Posts:
    37
    Thanks for the response! :)

    Cool, I didn't know there were editor scripts... I'll need to look that up.

    Thanks again,
    d