summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/doc_classes
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-12-14 15:16:43 -0600
committerAaron Franke <arnfranke@yahoo.com>2023-09-08 10:12:48 -0500
commit6f7eccc75813c68b2d80cc5f62d0688820e7a068 (patch)
tree063d0777001f35a2f48aa6c7a59ee34d183bcbd2 /modules/gdscript/doc_classes
parent8c1817f755b63a69378774d8d0f74499f663afe2 (diff)
downloadredot-engine-6f7eccc75813c68b2d80cc5f62d0688820e7a068.tar.gz
Add a type conversion method to Variant Utility and expose to scripting
Diffstat (limited to 'modules/gdscript/doc_classes')
-rw-r--r--modules/gdscript/doc_classes/@GDScript.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml
index 4f1a256ec9..18045e323c 100644
--- a/modules/gdscript/doc_classes/@GDScript.xml
+++ b/modules/gdscript/doc_classes/@GDScript.xml
@@ -57,11 +57,12 @@
[/codeblock]
</description>
</method>
- <method name="convert">
+ <method name="convert" is_deprecated="true">
<return type="Variant" />
<param index="0" name="what" type="Variant" />
<param index="1" name="type" type="int" />
<description>
+ [i]Deprecated.[/i] Use [method @GlobalScope.type_convert] instead.
Converts [param what] to [param type] in the best way possible. The [param type] uses the [enum Variant.Type] values.
[codeblock]
var a = [4, 2.5, 1.2]