From 738f6ea221d2bd8cb868ef6ca8d09b2b93b0de50 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 13 Sep 2020 22:01:52 +0200 Subject: [PATCH] Document how to remove metadata from an Object This closes https://github.com/godotengine/godot-docs/issues/4010. (cherry picked from commit cba4d73b7194679b2a315967c781b89ca0fb4930) --- doc/classes/Object.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index 7c5b676cf22..389fb649007 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -398,7 +398,7 @@ - Removes a given entry from the object's metadata. + Removes a given entry from the object's metadata. See also [method set_meta]. @@ -467,7 +467,8 @@ - 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].