Reparented objects for pause

This commit is contained in:
Marco 2025-02-24 10:37:27 +01:00
commit ac923941c3
5 changed files with 234 additions and 222 deletions

View file

@ -11,6 +11,8 @@ public partial class GlobalState : Node
{
Instance = this;
this.ProcessMode = ProcessModeEnum.Always;
Viewport root = GetTree().Root;
// Using a negative index counts from the end, so this gets the last child node of `root`.
CurrentScene = root.GetChild(-1);