Search Unity

Default GUIStyle for Unity Asset Project Window

Discussion in 'Editor & General Support' started by Aduviel, Feb 19, 2018.

  1. Aduviel

    Aduviel

    Joined:
    Feb 18, 2016
    Posts:
    3
    Hi all,

    Not sure if this question belongs in UI or here in Editor support (mods; please move accordingly if needed). I am currently working on a side project for the asset store. I wanted to make sure my UI reflects the same default GUI style that Unity has you select an asset in the project window. How can I achieve the same GUIStyle look as this?



    So far, I was able to get the icons from AssetDatabase.GetCachedIcon(...). I have tried using GUIstyles from EditorStyles.objectField and EditorStyles.miniLabel, but they did not seem to match the same style.

    If anyone knows how I can achieve the same bluish tint of the Icon Texture and the blue text highlighting effect when an item is selected/activated, that would be greatly appreciated!