Question by
rp88imxo_unity · May 01, 2021 at 02:25 PM ·
scripting problemuiexecution order
All transform.position has the same value in the Start method
Problem Description: I'm trying to initialize transform.position of my UI elements relatively to other UI elements (these elements are parented to the object with Grid Layout Group), but all of them have the same transform.position value if I set up them in the Start method. But initializing in the Update method by checking for some input works fine.
What I tried: I tried to rearrange my init script in the Script Execution Order to execute it last but it doesn't work. Ofc I could wrap init method in a coroutine and yield untill next frame, but I want to understand why it's happening
Comment