Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by morybest · Nov 23, 2015 at 12:54 PM · script.inspectorlogo

how to add logo for script in inspector?

i wanna add my own logo image for script that shown in inspector . for some script like gameplay and AI and etc. is there any way ?

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

2 Replies

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

Answer by morybest · Nov 24, 2015 at 05:02 AM

dear AngryTilde this makes an icon for script that shown in project and hierarchy and etc.. i wanna something like this (shown in attachment) alt text


home-monitor.jpg (89.7 kB)
Comment
Add comment · Show 3 · 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 AngryTilde · Nov 24, 2015 at 06:39 AM 0
Share

Ah, my mistake. I assumed you meant icon.

That is a custom editor pane, I haven't done a great deal with those yet so I can't tell you exactly how it was done but you can look into it further in the documentation here and the specific class Editor. I assume it's using DrawPreviewTexture or something similar for that effect.

avatar image morybest AngryTilde · Nov 24, 2015 at 06:45 AM 0
Share

tanx . it works . Done.

avatar image Koyemsi morybest · Dec 06, 2018 at 05:32 PM 0
Share

Hi, I'd like to do the same but couldn't figure out how. Could you please give some details ? Thx

avatar image
3

Answer by AngryTilde · Nov 23, 2015 at 01:27 PM

You sure can! While looking at the Scripts Import settings (That is while you have the script asset selected in the project browser) just left click the icon in the inspector, then hit 'other' in the drop down menu that appears. This will show you all the possible 2d texture assets in your project that can be used as an icon for that script.

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 YoloJero · Jul 11, 2018 at 06:27 PM 0
Share

Note that this will also show the selected icon in the SceneView which is probably not what the OP is after.

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

7 People are following this question.

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

Related Questions

Assigned Prefab to generic Script in Inspector is lost at runtime - Intended or bug? 0 Answers

How Create a menu in script and inspector ?? 2 Answers

Can't drag objects into the script's Object Inspector public variables 1 Answer

Destroy gameobjects several times in a scene. Also destroy other instances of that gameobject. 2 Answers

Pros and cos of editor vs script for connecting things to game objects. 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