You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add a type conversion method to Variant Utility and expose to scripting
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user