Function Node._ready
Called when the node is "ready", i.e. when both the node and its children have entered the scene tree. If the node has children, their ready
callbacks get triggered first, and the parent node will receive the ready notification afterwards.
Corresponds to the constant NOTIFICATION_READY
notification in GodotObject
. See also the onready
keyword for variables.
Usually used for initialization. For even earlier initialization, GodotObject
may be used. See also enterTree
.
Note: ready
may be called only once for each node. After removing a node from the scene tree and adding again, _ready
will not be called for the second time. This can be bypassed with requesting another call with requestReady
, which may be called anywhere before adding the node again.
void _ready() nothrow @nogc;