Search Unity

Gizmos in package.

Discussion in 'Package Manager' started by wang37921, Aug 9, 2019.

  1. wang37921

    wang37921

    Joined:
    Aug 1, 2014
    Posts:
    55
    While I making a custom package. I found if i can let the generated ScriptableObject asset has its own icon, will be cool.
    In general develop, it can be done by adding the namespace/to/Scriptable icon.png to Assets/Gizmos.
    So, I thought the custom package folder could include the Gizmos?
    And i found the office package include the Gizmos folder!
    But it has no effect, in my custom package...
    Any thing wrong, or it is no support now?
    upload_2019-8-9_14-49-53.png
     
  2. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    339
    If you just want to assign an icon to a ScriptableObject, there's an easier way that works with packages:
    Just select the ScriptableObject script in the editor and click on its icon in the top left of the inspector to assign any Texture2D as its icon. Any instance of the ScriptableObject will then use that icon, too.