Assign Texture2D to GUIStyle

Hi,

I changed my mind and I want to use GUIStyles to show my pictures.

How can I assign a new texture to the “normal” state of my Guistyle, previously I use different Guistyles and I toggle between them. But that won’t work with screenshots.

Do someone knows how to set a new texture to the normal state of my guistyle ?

Cheers

BooBi

You should just be able to assign the texture to the background property for the normal state:-

myStyle.normal.background = myTexture;

Cheers mate :wink: