소스 검색

Specify the behaviour of get_tree when the node is not in the scene tree

Nico 1 년 전
부모
커밋
ee9c8cb296
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">
 			<return type="SceneTree" />
 			<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>
 		</method>
 		<method name="get_tree_string">