From cba4d73b7194679b2a315967c781b89ca0fb4930 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. --- 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 2395ccd211f..50d91c7943d 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -395,7 +395,7 @@ - Removes a given entry from the object's metadata. + Removes a given entry from the object's metadata. See also [method set_meta]. @@ -464,7 +464,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].