Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ina · Dec 30, 2011 at 09:21 AM · editorsceneprojecteditorwindowide

Browse where all scripts are relative to gameobject reference

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?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Statement · Dec 30, 2011 at 09:41 AM 0
Share

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?

avatar image ina · Dec 30, 2011 at 09:52 AM 0
Share

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

avatar image Statement · Dec 30, 2011 at 10:09 AM 0
Share

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 deter$$anonymous$$ing dependencies between scripts in the editor, so maybe there are tools that can help you already.

avatar image ina · Dec 31, 2011 at 08:12 AM 0
Share

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)

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How do you get child assets in the Project hierarchy in an EditorWindow? 0 Answers

Different lighting in projects 1 Answer

Hold Right-Click + "W" or "S" in Scene Editor not working properly!! 1 Answer

Move objects in scene view before running the game 0 Answers

Open scene and load prefab 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges