i have GUI in my scene, by default it is white. If I use this script below to set the color to red i think that would not be good because it is a function update, or would this be okay? function Update () { guiText.material.color = Color.red; }
Well it seems okay but you could try checking the color and only changing it if its not already red. Code (csharp): function Update () { if(guiText.material.color!=Color.red) { guiText.material.color = Color.red; } }
Update runs every frame. Don't use Update unless you actually want something to happen every single frame. --Eric