From e47ba810507c15e57429a78b50f7cd8197d09bd0 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Wed, 16 Mar 2022 17:58:35 +0100 Subject: Add `@GDScript.type_exists` documentation --- modules/gdscript/doc_classes/@GDScript.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/gdscript/doc_classes') diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index 10cf783e73..8ca65f0004 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -239,6 +239,11 @@ + Returns whether the given [Object]-derived class exists in [ClassDB]. Note that [Variant] data types are not registered in [ClassDB]. + [codeblock] + type_exists("Sprite2D") # Returns true + type_exists("NonExistentClass") # Returns false + [/codeblock] -- cgit v1.2.3