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. Note: The scene change is deferred, which means that the new scene node is added on the next idle frame. You won't be able to access it immediately after the changeSceneTo call.

struct SceneTree
@nogc nothrow
GodotError
changeSceneTo

Meta