- Home /
Question by
hexagonius · Nov 05, 2015 at 10:42 AM ·
uirecttransformrect
How to avoid UI flicker on first frame
I have a menu on a canvas which is disabled by default.it contains a progress bar which needs to be set the first time it's shown.
The problem is that the rect of the RectTransform does not seem to be correct the first frame, so I have to yield for that one. This means the first frame is rendered wrong.
How do I avoid that? Is there a callback that let's me resize it after it was calculate BEFORE the first render?
Comment