- Home /
 
Texture fade in
Is there a way to fade in a Texture's alpha through the use of time.delta time? trying to give the illusion of spinning water on a mobile app
               Comment
              
 
               
              Answer by robert_mathew · Dec 01, 2011 at 12:31 AM
           public float       p_alpha = 1.0f;
          p_alpha = Mathf.MoveTowards(p_alpha, 0f, 0.0040f);        
          GUI.color = new Color(1f,1f,1f,p_alpha);
          GUI.DrawTexture(new Rect(Screen.width * (4.9f/6.55f),Screen.height * (1.8f/6.3f),Screen.width * (0.8f/6.55f),Screen.height * (0.8f/6.3f)),p_texture_occult_dice,ScaleMode.StretchToFill, true, 100.0F);
 
              Your answer