I have a variable that is a texture but I dont understand how I can change its color in run time?
var btnPlayTexture : Texture;
btnPlayTexture.color = Color.red;
I have a variable that is a texture but I dont understand how I can change its color in run time?
var btnPlayTexture : Texture;
btnPlayTexture.color = Color.red;
If you check the Script Reference documentation for Texture, you’ll see it has not color variable. Look at Material, instead.
Edit: actually since you’re using GUITexture, look at that class.
Ok, im not sure what to do from a class. I know what it is but I dont know how I would acces that in any way.