Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In 4.3 dev 6, GetTree().Root...missing Node. #91585

Open
teamjistory opened this issue May 5, 2024 · 1 comment
Open

In 4.3 dev 6, GetTree().Root...missing Node. #91585

teamjistory opened this issue May 5, 2024 · 1 comment

Comments

@teamjistory
Copy link

teamjistory commented May 5, 2024

public void StartGameAsMainMenu()
	{
		GameState = Enum_GameState.Main_Menuing;

		if (MainMenu != null && MainMenu.IsInsideTree())
		{
			GetTree().Root.CallDeferred("remove_child", MainMenu);
			MainMenu = null;
		}

		MainMenu = _MainMenu.Instantiate();
		GetTree().Root.CallDeferred("add_child", MainMenu);
	}


GetTree().Root.CallDeferred("add_child", MainMenu);

===> MainMenu is null

System information

GetTree().Root.CallDeferred("add_child", MainMenu); ===> MainMenu is null

Issue description

GetTree().Root.CallDeferred("add_child", MainMenu);

===> MainMenu is null

Steps to reproduce

GetTree().Root.CallDeferred("add_child", MainMenu);

===> MainMenu is null

Minimal reproduction project (MRP)

GetTree().Root.CallDeferred("add_child", MainMenu);

===> MainMenu is null

@AThousandShips
Copy link
Member

Please fill in all the sections properly, or ask in the forums if you are looking for support, this is for reporting bugs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants