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 nuverian · Dec 16, 2012 at 07:28 PM · editorinspectorcustomization

How to change Component Icon shown?

Hi.

Is there a way to change the icon shown in a custom components title bar (instead of "js" or "c#" for example).

I've tried making an icon with the same name as the class and putting it into a Gizmos folder as I've read somewhere, but it doesn't seem to work. Do I miss something? Thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
6
Best Answer

Answer by save · Dec 16, 2012 at 08:37 PM

You can change the icon by selecting the object in Project view, click the icon in the upper left corner in Inspector and select "Other". You can read more about it here.

Comment
Add comment · Show 8 · 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 nuverian · Dec 16, 2012 at 10:44 PM 1
Share

Hi. Thanks for answer, but I was asking about the icon of the custom Component/Script. The small icon that is shown on the ledt of the Script name, NOT the game object's Icon.

avatar image save · Dec 16, 2012 at 11:53 PM 1
Share

I'm not sure if I follow you, don't you mean the title of the component? This is one of my UnityScript components:

Custom component icon Custom component icon 2

avatar image nuverian · Dec 17, 2012 at 01:37 AM 0
Share

Oh, now I got it! Yes thats what I am after. It seems that I missed the "In Project View" :/ Thanks Save! Does it allways have to show up in the scene view as well?

avatar image save · Dec 17, 2012 at 01:41 AM 0
Share

Anytime! You can use the Gizmos dropdown in both Scene- and Game view to turn on and off gizmos (such as this one). Click the custom icon to toggle.

avatar image timvisee · Dec 03, 2013 at 07:19 PM 1
Share

Is there any way to achieve this programmably, from the script itself when it's being initialized? Thanks in advance.

Show more comments

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

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can the GameObjectInspector window be customized? 0 Answers

Draw specific Object Inspector into Rect 1 Answer

Extending the Project View 2 Answers

Customizing Inspector variables. 2 Answers

How to set a shared material in inspector? 0 Answers


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