Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

CanvasRenderer OnEnable SetAlpha

$
0
0
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)

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>