Changing Texture's Color

Hello~

I'm trying to change Texture's color.

I can do it by Creating a GUI Texture and setting color wanted to the Texture in Inspector window.

Problem is, I have some GUI buttons created in JavaScript. I could use two Textures (one for normal, one for active) to make the button change when I click on it. But now, I want to use only one Texture to achieve this. So I think the best way is change the color of the Texture when I click on it. Some people said that we could implement this by using GUISkin or GUIStyle, I think the second method is using two different Textures,,

So.. Can any one please tell me how I can work this out?.

Thanks! ^.^

If it's "GUI Texture" as in GUITexture, then do `guiTexture.color = whatever`. If you mean a texture as drawn in OnGUI, then change `GUI.contentColor`.