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

Closed
teamjistory opened this issue May 5, 2024 · 2 comments
Closed

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

teamjistory opened this issue May 5, 2024 · 2 comments
Labels

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

@AThousandShips
Copy link
Member

Closing due to lack of response, if you provide the requested information this can be reopened

@AThousandShips AThousandShips closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants