Search Unity

Question UI layout takes a few draw calls to properly display UI elements

Discussion in 'UGUI & TextMesh Pro' started by DoctorTM, Dec 29, 2023.

  1. DoctorTM

    DoctorTM

    Joined:
    Feb 22, 2014
    Posts:
    3
    I’m having issues with the UI not drawing the elements correctly the first time. Looks like I need 3 draw calls to get the layout properly.
    The element is added via script. I’m using Unity’s layout components. No script is used to manipulate the layouts. The entire “Distribution Center” window is on its own canvas.

    Any suggestions/advice?

    UI issue.gif

    Left: the UI at instantiation moment
    Right: the expected view
    Sequence 08.00_00_02_09.Still001.png
     

    Attached Files: