transparent and alpha

Hi.

I’m trying to make an gui menu that i can make transparent so it can for example increase the alpha with one all the time so it fades in.

I have tried to use GUI.a = 0; and some similar things but i cant get it working.

I have done it on gui textures but now i need to do it on a button.

Any suggestions :?:

try GUI.color.a

Give GUI.color() a try. Remember the GUI runs in immediate mode, so don’t forget to change it back once you’re done.

EDIT:geez Nicholas, you’re fast today :slight_smile:

can you give a script sample because it won’t work for me

GUI.color.a = 0;

or

GUI.color(0,0,0,0);

Oh.

um now it works seams that i have forgotten to place the code in the ongui function.

Thanks for the help :smile: