summaryrefslogtreecommitdiff
path: root/doc/classes/Object.xml
diff options
context:
space:
mode:
authorMicky <micheledevita2@gmail.com>2022-10-12 10:27:44 +0200
committerMicky <micheledevita2@gmail.com>2022-10-12 10:27:44 +0200
commitdc51ff8c5b848f0dbd5624fa795b3d98004ac7d6 (patch)
treed8578fa303a93dc6b451b30f0adfdf30302f41d7 /doc/classes/Object.xml
parent143dbb354411e5f669e0f751f1254d03f531d576 (diff)
Rename `set`/`get_indexed`'s "property" to "property_path"
Also touches up the Documentation slightly.
Diffstat (limited to 'doc/classes/Object.xml')
-rw-r--r--doc/classes/Object.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml
index 7ad1908bb5..e663f47ddf 100644
--- a/doc/classes/Object.xml
+++ b/doc/classes/Object.xml
@@ -364,9 +364,9 @@
</method>
<method name="get_indexed" qualifiers="const">
<return type="Variant" />
- <param index="0" name="property" type="NodePath" />
+ <param index="0" name="property_path" type="NodePath" />
<description>
- 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].
+ Gets the object's property indexed by the given [param property_path]. The path should be a [NodePath] 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.
</description>
</method>
@@ -532,10 +532,10 @@
</method>
<method name="set_indexed">
<return type="void" />
- <param index="0" name="property" type="NodePath" />
+ <param index="0" name="property_path" type="NodePath" />
<param index="1" name="value" type="Variant" />
<description>
- Assigns a new value to the property identified by the [NodePath]. The node path should be relative to the current object and can use the colon character ([code]:[/code]) to access nested properties. Example:
+ Assigns a new value to the property identified by the [param property_path]. The path should be a [NodePath] relative to the current object and can use the colon character ([code]:[/code]) to access nested properties. Example:
[codeblocks]
[gdscript]
var node = Node2D.new()