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 · Oct 31, 2010 at 06:45 PM · editor-scriptingicon

How can I change the icon of a script within the Project View?

is it possible to change the icon of a script in the project view within unity? If so, how?

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

5 Replies

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

Answer by Spanky555 · May 08, 2013 at 02:04 AM

This is possible in Unity 4+ [might be available in older versions as well, no idea but the question is almost 3 years old]

You can click on the script in the project view and in the top left of the inspector you will see the default C#/JS script icon with a tiny little drop down arrow. Click on the C#/JS icon and you'll see a drop down for picking custom icons.

Comment
Add comment · Show 2 · 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 Zionmoose · May 26, 2015 at 09:12 AM 0
Share

The answer should be updated to this.

avatar image iwaldrop · Mar 03, 2016 at 03:51 AM 0
Share

Oh wow, I can't believe I missed this. Definitely the right answer. Great catch!

avatar image
4

Answer by jfperusse_bhvr · Sep 07, 2016 at 02:29 PM

The above answer will not work as the custom icon will get lost when the asset is re-imported or the project re-opened.

See http://forum.unity3d.com/threads/custom-script-icons-not-saving.390970/ for the right solution.

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 makaka-org · Oct 20, 2017 at 11:24 AM 0
Share

Thx, man! It works with Unity 2017.1.1p4.

avatar image
3

Answer by iwaldrop · Oct 29, 2014 at 07:38 AM

Very old question and outdated answer. So lets update it, shall we? It is very easy to set a custom icon for any script.

Steps:

  1. Select the script that you want to assign the icon to.

  2. Switch the Inspector from Normal to Debug (how?).

  3. Drag any imported texture from the Project View into the Icon field.

Now your custom icon will display in the Project View, Inspector, and as a Gizmo in the Scene View. You may need to collapse and re-expand the folder that the script is in to update the Project View.

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

Answer by Eric5h5 · Oct 31, 2010 at 06:50 PM

Not easily; you'd have to hack the resources of the Unity app.

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

Answer by TGKG · Jan 18, 2019 at 11:09 PM

I know this is an old question, however I see that this question is still being added to.

What if I have 2 scripts with icons attached to the same game object. Is there a way to get both icons to show up in the scene view?

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

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

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Edit a inspector variable from editor script.(its not saving) 1 Answer

Updating object on inspector value changes in editor 1 Answer

How to get notification of moving a GameObject in the hierachy when editing the scene? 1 Answer

How to check if a key is down in editor script 2 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