CSharpRedotTools / Template

A template used for quickly setting up new Redot 4 C# games.
MIT License
111 stars 8 forks source link

[Options] Have to wait one frame before accessing the contents of options #17

Closed valkyrienyanko closed 2 months ago

valkyrienyanko commented 3 months ago

Relevant Code

[!NOTE] Notice how we have to await GU.WaitOneFrame(this) before doing GetNode<UIPopupMenu>("%PopupMenu")?

https://github.com/ValksGodotTools/Template/blob/a23c97055de2feb110701aa40d1a162e52e36cd5/Template/Scripts/3D%20FPS/SubView.cs#L9-L33

https://github.com/ValksGodotTools/Template/blob/a23c97055de2feb110701aa40d1a162e52e36cd5/Template/Scripts/3D%20FPS/Player.cs#L27-L35