Search Unity

[ Help ] Alpha in EditorGUI.DrawPreviewTexture

Discussion in 'Immediate Mode GUI (IMGUI)' started by Deleted User, Sep 2, 2013.

  1. Deleted User

    Deleted User

    Guest

    Hello,

    in a EditorWindow i am not able to set the alpha transparency in a texture with:

    EditorGUI.DrawPreviewTexture
    I checked the Alpha texture in Photoshop and i saved it both in .png and .psd
    I enabled the "Alpha is transparency" in the inspector, tried to enable the texture as GUI, but i have this result ( white in the red buttons should be transparent ):

    $a.jpg

    Any suggestion?

    Thank you.