Merge pull request #64076 from raulsntos/doc-fixes

Add `@GDScript.type_exists` documentation, Fix typo in weakref documentation
This commit is contained in:
Rémi Verschelde
2022-08-08 19:15:25 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -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>