浏览代码

Merge pull request #82863 from HexagonNico/docs_get_tree

Specify the behaviour of `get_tree()` when the node is not in the scene tree
Rémi Verschelde 1 年之前
父节点
当前提交
76d9521801
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/Node.xml

+ 1 - 1
doc/classes/Node.xml

@@ -444,7 +444,7 @@
 		<method name="get_tree" qualifiers="const">
 		<method name="get_tree" qualifiers="const">
 			<return type="SceneTree" />
 			<return type="SceneTree" />
 			<description>
 			<description>
-				Returns the [SceneTree] that contains this node.
+				Returns the [SceneTree] that contains this node. Returns [code]null[/code] and prints an error if this node is not inside the scene tree. See also [method is_inside_tree].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_tree_string">
 		<method name="get_tree_string">