diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-08 19:15:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 19:15:25 +0200 |
commit | 862dedcefee5d22449eca711aa9af33c4377d31a (patch) | |
tree | 393a5deeae0cb0445e2eb55a7b8f6a357cf2df1a /modules/gdscript/doc_classes/@GDScript.xml | |
parent | bc3ab0aaa86e88d12300c3939b23bef0def02105 (diff) | |
parent | e47ba810507c15e57429a78b50f7cd8197d09bd0 (diff) |
Merge pull request #64076 from raulsntos/doc-fixes
Add `@GDScript.type_exists` documentation, Fix typo in weakref documentation
Diffstat (limited to 'modules/gdscript/doc_classes/@GDScript.xml')
-rw-r--r-- | modules/gdscript/doc_classes/@GDScript.xml | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ <return type="bool" /> <argument index="0" name="type" type="StringName" /> <description> + 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] </description> </method> </methods> |