Open
Description
Your Godot version:
4.2.2
Issue description:
The code below doesn't do anything.
// Add to 'Scene1.cs'.
private void OnButtonPressed()
{
var global = GetNode<Global>("/root/Global");
global.GotoScene("res://Scene2.tscn");
}
// Add to 'Scene2.cs'.
private void OnButtonPressed()
{
var global = GetNode<Global>("/root/Global");
global.GotoScene("res://Scene1.tscn");
}
Scene2.tscn
and Scene1.tscn
don't exist in the template provided.
This also isn't how Godot's signals work in C#. (Refer to https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_signals.html.)
Also, the user needs to create the C# scripts by themselves. (The C# files don't exist in the template)
URL to the documentation page:
https://docs.godotengine.org/en/latest/tutorials/scripting/singletons_autoload.html