![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | subject4056 |
I have a scene which draws some stuff to the canvas, and under certain conditions “pops up” an instanced scene on one part of the canvas. So something like:
Root Node |-> sprites etc. |-> Instanced Scene "pane" |-> labels, buttons, etc.
When I instance the pane, it appears at the full dimensions and positions of the original, while I would like it to only cover e.g. the left third of the screen, and all the children of the pane to reposition accordingly. I can do this manually by fussing with positions in pane._ready
, but that’s not scalable as the pane grows in detail (gets more children).
I don’t want to make the instanced pane a static child of the root because I might have multiple different panes shown at different times, and editing them all in one scene would be very difficult.
How can I get the instanced scene to resize/reposition its children when I instance it?