Make a GUI.Label flash white

Hi,

I have a GUI.Label which uses a GUIStyle. The Normal.Background of the GUIStyle has a texture. There is no text in the GUI.Label, just the texture.

I want the label to flash white (think of an enemy being shot in an arcade game) for a couple of seconds. I can make it flash black by changing GUI.Color from 1 to 0 and back repeatedly, but I want it to flash white :slight_smile:

Before I go making it a game object that I can apply a shader to instead of a GUI object, I wanted to check if anyone knows of a way to make the texture flash white and keep it as a GUI object.

maybe you can change the texture for the GUI label from one to another repeatedly

yea i suggested that, but they want a smooth transition from colour to white. I have text labels that are colour white, so I just change GUI.Color from 0 to 1 repeatedly which makes them flash black-white nicely. They want the same to happen for the colour images, colour-white.

I ended up doing what you said, changed the texture for the GUI label from a colour to a white version repeatedly. It actually does look pretty good.

your welcome