summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-02-27 22:03:33 +0100
committerkobewi <kobewi4e@gmail.com>2022-03-22 15:50:47 +0100
commit3eb7fc4bfd376bc27ea3313ccd1da4679c48f4cb (patch)
tree2dfe483a2a36aca51131c309f378d74684822dbe /doc/classes
parent9433c1d70c67fe8294d2c5721cf7e4b6cb3d554b (diff)
Add optional 'default' argument to get_meta()
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Object.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml
index d09f3a2b0d..77927b9a8a 100644
--- a/doc/classes/Object.xml
+++ b/doc/classes/Object.xml
@@ -366,8 +366,10 @@
<method name="get_meta" qualifiers="const">
<return type="Variant" />
<argument index="0" name="name" type="StringName" />
+ <argument index="1" name="default" type="Variant" default="null" />
<description>
Returns the object's metadata entry for the given [code]name[/code].
+ Throws error if the entry does not exist, unless [code]default[/code] is not [code]null[/code] (in which case the default value will be returned).
</description>
</method>
<method name="get_meta_list" qualifiers="const">