summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-14 14:22:15 +0200
committerGitHub <noreply@github.com>2020-09-14 14:22:15 +0200
commitc5f7a581f7247f599b07b0346062db39e52c7d5a (patch)
tree3ec6c47c82ebd2ec9de7ac66e8b5a3fa3ea27f1e /doc
parent6ee1b786243e27271bfd62c9d70260cad421a3c4 (diff)
parentcba4d73b7194679b2a315967c781b89ca0fb4930 (diff)
Merge pull request #42036 from Calinou/doc-object-metadata-remove
Document how to remove metadata from an Object
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Object.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml
index 2395ccd211..50d91c7943 100644
--- a/doc/classes/Object.xml
+++ b/doc/classes/Object.xml
@@ -395,7 +395,7 @@
<argument index="0" name="name" type="String">
</argument>
<description>
- Removes a given entry from the object's metadata.
+ Removes a given entry from the object's metadata. See also [method set_meta].
</description>
</method>
<method name="set">
@@ -464,7 +464,8 @@
<argument index="1" name="value" type="Variant">
</argument>
<description>
- Adds or changes a given entry in the object's metadata. Metadata are serialized, and can take any [Variant] value.
+ Adds, changes or removes a given entry in the object's metadata. Metadata are serialized and can take any [Variant] value.
+ To remove a given entry from the object's metadata, use [method remove_meta]. Metadata is also removed if its value is set to [code]null[/code]. This means you can also use [code]set_meta("name", null)[/code] to remove metadata for [code]"name"[/code].
</description>
</method>
<method name="set_script">