type_convert()
On this page
Earlier edition reference / Current 0.86.4.0 property paths > p. 350
type_convert(variant: Variant, type: int) -> VariantQuery a Variant type ID, name a type ID, or convert to a requested type.
type_string()#
type_string(type: int) -> StringQuery a Variant type ID, name a type ID, or convert to a requested type.
typeof()#
typeof(variable: Variant) -> intQuery a Variant type ID, name a type ID, or convert to a requested type.
var_to_bytes()#
var_to_bytes(variable: Variant) -> PackedByteArrayConvert supported Variant data to/from binary data without object encoding.
var_to_bytes_with_objects()#
var_to_bytes_with_objects(variable: Variant) -> PackedByteArrayBinary Variant conversion that can include objects; use only with an intentional trusted-data format.
var_to_str()#
var_to_str(variable: Variant) -> StringConvert supported Variant data to/from Godot’s text representation.
