Search Unity

Question Make tiny previews of pixel art in Project tab larger?

Discussion in 'Editor & General Support' started by GotCake, Mar 22, 2023.

  1. GotCake

    GotCake

    Joined:
    Nov 16, 2022
    Posts:
    1
    I work with a lot of smaller pixel art (8x8, 16x16, etc.). The preview images in the Project folder for images like these are very small, even with the scaling slider all the way up. Some examples:




    I like to drag images from the Project folder into the Inspector, so being able to tell the images apart is important.

    I wrote a C# Editor script that defines static void IconGUI(string guid, Rect r), and makes larger versions of the source images to use with GUI.DrawTexture. This mostly works:



    Except, the images I draw are actually over top of the original, smaller, ones:



    Is there a way to override whatever creates the original icons so I can make them larger, or have them not draw when I use GUI.DrawTexture to draw overtop? In other words: any better way to do this overall?

    Thanks!
     
    mgear likes this.