I want to set position for the GPU Particles (2D node) into the middle of TextureRect (control), lets say as a part of the UI (so that it shouldn’t move in regards to the player screen).
From what I understand, the way to put 2D Nodes into GUI is to put them on separate CanvasLayer to ‘freeze’ their placement.
However, I cannot locate the transform needed to put the particles relative to a control node (whose position is technically 0,0):
When are you sampling that? It ought to be updating at runtime. If you put your print in the drawer script’s _process(), do you just endlessly get zeros?
My understanding is that _ready() or @onready are when the node enters the tree, but this doesn’t guarantee that all the surrounding setup is done. I’m not sure if there’s a “container layout change” signal you could hook, but if there is…