How can I achieve this in C#. I need to wait until the parent node has finished his initialization.
yield(owner, "ready")
Instead of yielding, connect the ready signal from parent to child
yield
ready
AnidemDex
This can be achieved with:
await ToSignal(GetParent(), "ready");
Thanks will try it that way.
Do you know is it generally possible to "await" things with C# in Godot? So using Task, IEnumarators and async operations?
patrick-rainer
Yes, you can use Node.ToSignal(), like this:
await ToSignal(GetTree(), "idle_frame");