From 359205f7d78531b79d3d0d97f7c40ac6cf6e67cf Mon Sep 17 00:00:00 2001 From: twobit Date: Fri, 29 Jul 2022 14:37:31 -0400 Subject: [PATCH] updated scenetree docs to include information on passing in null --- doc/classes/SceneTree.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/SceneTree.xml b/doc/classes/SceneTree.xml index b04cdce6914..399dd3ccf1f 100644 --- a/doc/classes/SceneTree.xml +++ b/doc/classes/SceneTree.xml @@ -55,6 +55,7 @@ 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. [b]Note:[/b] 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 [method change_scene_to] call. + [b]Note:[/b] Passing a value of [code]null[/code] into the method will unload the current scene without loading a new one.