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
2
Question by Skjalg · Mar 29, 2011 at 07:57 PM · editorcustom-inspectorlogicicon

Add an icon or text to the inspector on custom scripts?

I have made a few hundred different scripts that is being used in a designer tool I am making to extend unity with

The scripts are roughly divided into three categories:

  • Entity
  • Event
  • Condition

EseLogic

Some of the Entities have very similar names to the Events and Conditions, and the designer who is testing the tool for me complained that it is hard to differentiate between the scripts on the GameObject in the inspector so I suggested I'd add an icon or some text to the inspector, but as far as I can tell it is not possible to do so easily.

I do not want to create 100's of Icon files in the Gizmos folder as suggested here: http://answers.unity3d.com/questions/469/changing-the-inspector-titlebar-icon-and-text

And since creating a custom inspector for my base classes would not work as stated here: http://answers.unity3d.com/questions/45576/do-custom-inspectors-support-inheritance I do not want to create 100's of new custom inspectors either, that would be even worse than having 100's of icons.

Then I am at a loss of what to do. Any ideas or suggestions would be greatly appreciated :)

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 · Mar 29, 2011 at 08:14 PM 0
Share

See related question: http://answers.unity3d.com/questions/49029/how-to-use-resources-in-custom-editorwindow

avatar image Skjalg · Mar 30, 2011 at 06:30 AM 0
Share

Unless I am misunderstanding you completely, then that is more specific as to how to load an icon, which I already knew. But seeing as I have 100's of scripts I do not want to make 1 new custom inspector per script. (as I mentioned at the bottom of my question).

avatar image Demigiant · Nov 25, 2011 at 04:38 PM 0
Share

Would love to see an answer to this. Did you find a way in these months?

avatar image Skjalg · Mar 27, 2012 at 08:39 AM 0
Share

No, still no solution that I've found to this.

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Statement · Mar 29, 2011 at 08:16 PM

Use either:

  1. Default References (Inspector on script).
  2. AssetDatabase.LoadAssetAtPath or AssetDatabase.LoadAllAssetsAtPath.
Comment
Add comment · Show 1 · Share
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 Skjalg · Mar 29, 2011 at 08:48 PM 0
Share

So your first suggestion is to have an icon variable in the script, and that would show up in the inspector? Also,why would loading asset at a path help me putting an icon or text on the inspector of hundreds of scripts. I thought they only gave you the assets in code?

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

2 People are following this question.

avatar image avatar image

Related Questions

Drawing Editor Inspector GUI based on selected/current prefab (CustomPropertyDrawer) 2 Answers

Cloning GameObjects with custom inspector script attached 0 Answers

Select a readonly value from dropdown using PropertyDrawers 0 Answers

Update editorscript if gameobject is manipulated. 1 Answer

Questions Regarding Images in Custom Inspector/Editor 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