瀏覽代碼

[3.x] Add example for `NodePath` to grandparent

(cherry picked from commit b3ebc80feb8dc56e1fda22ecd8e378ba675b718d)
Ninni Pipping 2 年之前
父節點
當前提交
528221fb63
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/NodePath.xml

+ 1 - 0
doc/classes/NodePath.xml

@@ -15,6 +15,7 @@
 		@"." # The current node.
 		@".." # The parent node.
 		@"../C" # A sibling node C.
+		@"../.." # The grandparent node.
 		# A leading slash means it is absolute from the SceneTree.
 		@"/root" # Equivalent to get_tree().get_root().
 		@"/root/Main" # If your main scene's root node were named "Main".