Namespace: types
Language: Lua
Type: Defold Lua
File: script_types.cpp
Source: engine/script/src/script_types.cpp
Functions for checking Defold userdata types.
Type: FUNCTION Check if passed type is hash.
Parameters
var (any) - Variable to check typeReturns
result (boolean) - True if passed type is hashType: FUNCTION Check if passed type is matrix4.
Parameters
var (any) - Variable to check typeReturns
result (boolean) - True if passed type is matrix4Type: FUNCTION Check if passed type is quaternion.
Parameters
var (any) - Variable to check typeReturns
result (boolean) - True if passed type is quaternionType: FUNCTION Check if passed type is URL.
Parameters
var (any) - Variable to check typeReturns
result (boolean) - True if passed type is URLType: FUNCTION Check if passed type is vector.
Notes
types.is_vector(vmath.vector3()) it returns ‘false’Parameters
var (any) - Variable to check typeReturns
result (boolean) - True if passed type is vectorType: FUNCTION Check if passed type is vector3.
Parameters
var (any) - Variable to check typeReturns
result (boolean) - True if passed type is vector3Type: FUNCTION Check if passed type is vector4.
Parameters
var (any) - Variable to check typeReturns
result (boolean) - True if passed type is vector4