Hello everyone!
help please.
how do I add a fade in a GUITexture!
this in my code:
var Slider : GUITexture;
var Start_Fade : GUITexture;
function Update ()
{
if (Input.touchCount > 0 Input.GetTouch(0).phase == TouchPhase.Moved Start_Fade.HitTest (Input.GetTouch(0).position))
{
Slider.color.a = /*(FadeIn)*/;
}
}
Look at iTween.FadeTo(). I think it could be applied to a guiTexture. If not, one thing to consider is many, if not most people tend to stay away from Unity’s onGui. It is too costly to the engine. Perhaps a second camera and regular 2DTextures will do.
mmm…there is no other way?!
http://wiki.unity3d.com/index.php?title=Fade
OnGUI doesn’t have anything to do with GUITextures.
–Eric