You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Document how to remove metadata from an Object
This closes https://github.com/godotengine/godot-docs/issues/4010.
This commit is contained in:
@@ -395,7 +395,7 @@
|
|||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set">
|
<method name="set">
|
||||||
@@ -464,7 +464,8 @@
|
|||||||
<argument index="1" name="value" type="Variant">
|
<argument index="1" name="value" type="Variant">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_script">
|
<method name="set_script">
|
||||||
|
|||||||
Reference in New Issue
Block a user