From 4ea6709558ae715df45b4b5137f4ae554922cad4 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 22 Nov 2021 01:26:55 +0100 Subject: [PATCH] Clarify get_indexed in relation to Nodes --- doc/classes/Object.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index df9da7561eb..860e2528054 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -350,6 +350,7 @@ Gets the object's property indexed by the given [NodePath]. The node path should be relative to the current object and can use the colon character ([code]:[/code]) to access nested properties. Examples: [code]"position:x"[/code] or [code]"material:next_pass:blend_mode"[/code]. + [b]Note:[/b] Even though the method takes [NodePath] argument, it doesn't support actual paths to [Node]s in the scene tree, only colon-separated sub-property paths. For the purpose of nodes, use [method Node.get_node_and_resource] instead.