Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. Unity 2017.3 has arrived! Read about it here.
    Dismiss Notice
  3. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

CanvasRenderer OnEnable SetAlpha

Discussion in 'Unity UI & TextMesh Pro' started by Piflik, Mar 23, 2016.

  1. Piflik


    Sep 11, 2011
    I am using the CanvasRenderer.SetAlpha() function to fade out UI elements. It works well most of the time, but at one position I deactivate gemeobjects, and when they are activated again, the CanvasRenderer's alpha value is reset to 1 instead of keeping the value it had before. Is that the intended behaviour?

    Edit: A short test tells me it already happens in OnDisable() (or earlier, Debug.Log in OnDisable returns 1, while in Update it prints the correct value)
    Menion-Leah likes this.
  2. Menion-Leah


    Nov 5, 2014
    Issue still present in 2017.3.0p1