Godot Version
v4.3.stable.flathub [77dcf97d8]
Question
In godot, what happens if I have an await
inside _enter_tree
or _ready
?
I know that the code below it in the method itself is blocked, but what else? Will nodes be processed, respond to input, etc?
- Will other nodes await?
- Will at least child nodes await?
- Will at least other callbacks in the node itself (process, input, click events, etc) await?
- Will at least
_ready
await for anawait
in_enter_tree
of the same node?
I asked ChatGPT about this, and it said it doesn’t block execution of other nodes, not even child nodes, but does block other events (like process) on the node itself. Is this correct or not?
For example, if I need await
to initialize a member field on the node, do I have to check it for null in all other methods that use it?