UI Fading in flicker 5.5

I’m trying to make this RectTransform fade in. It has an script which controls the alpha value of the canvas renderer of it and its children as detailed by Unity UI - Fading Canvas/Panel - Questions & Answers - Unity Discussions

so using this script I have done the following:

  1. Set RectTransform as inactive
  2. Activate RectTransform with Alpha set to 0 in start function.
  3. Animate the Alpha variable to go from 0 to 1.

between steps 1 and 2 it seems like it takes a little to realize that it has to set Alpha to 0 and so it creates this flicker which I don’t like. My guess is that the canvasrenderer takes a frame to run the start function causing this. ¿Any ideas on how to tackle this issue?

had this too. Call Canvas.ForceUpdateCanvases() after initializing the values.

Or set them in Awake.