Skip to content

Commit

Permalink
Merge pull request #80264 from AttackButton/doc-current_scene
Browse files Browse the repository at this point in the history
Clarify `SceneTree.current_scene` functionality
  • Loading branch information
akien-mga committed Aug 7, 2023
2 parents a528197 + b02d256 commit 01758ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/classes/SceneTree.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@
For mobile platforms, see [member quit_on_go_back].
</member>
<member name="current_scene" type="Node" setter="set_current_scene" getter="get_current_scene">
The current scene.
Returns the root node of the currently running scene, regardless of its structure.
[b]Warning:[/b] Setting this directly might not work as expected, and will [i]not[/i] add or remove any nodes from the tree, consider using [method change_scene_to_file] or [method change_scene_to_packed] instead.
</member>
<member name="debug_collisions_hint" type="bool" setter="set_debug_collisions_hint" getter="is_debugging_collisions_hint" default="false">
If [code]true[/code], collision shapes will be visible when running the game from the editor for debugging purposes.
Expand Down

0 comments on commit 01758ea

Please sign in to comment.