Is it possible to browse where all the scripts are in a project relative to the gameobject that contains them - i.e., which game object has which scripts etc?
Is it also possible to find out which gameobjects reference which scripts that are not actually placed in the gameobject?
For the second paragraph: Do you mean like figuring out if a script access another script via GetComponent or something? Or just a public reference?
Yes, both GetComponent or referenced as a global - or just called as a static - basically all the cases a gameobject can reference/call another script
It's impossible to tell for sure since GetComponent accept a string argument which can be generated/selected at run-time. But that is a very special scenario. Because Unity allow for reflection, it's quite hard to decide by automated means which files are in use and which ain't, since the files could be deferred to at a later point in time. But if you have all types as references, you could make write an editor script that would parse all public members and try to match them with source files. I haven't been toying around too much with the different ways of determining dependencies between scripts in the editor, so maybe there are tools that can help you already.
Hmm what about just a way to browse which game objects contains which scripts then? (Ignoring the second part for the in-line GetComp references)
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
5 People are following this question.
How do you get child assets in the Project hierarchy in an EditorWindow?
Open scene and load prefab
Hold Right-Click + "W" or "S" in Scene Editor not working properly!!
Move objects in scene view before running the game
Was the feature of using the Asterisk ('*') as a wildcard Removed?