Function SceneTree.changeSceneTo

Changes the running scene to a new instance of the given PackedScene. Returns constant OK on success or constant ERR_CANT_CREATE if the scene cannot be instantiated.

godot.core.defs.GodotError changeSceneTo (
  PackedScene packed_scene
) nothrow @nogc;