Struct VariantType
Represents an object type that can be interpreted as more than one type.
Inherited Members
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
VariantType
Assembly: FlaxEngine.dll
File: Engine/Core/Types/Variant.h
Syntax
public struct VariantType
Constructors
VariantType(const StringAnsiView& typeName)
VariantType(const VariantType& other)
VariantType(Types type, const MClass* klass)
VariantType(Types type, const StringAnsiView& typeName)
Declaration
public VariantType(Types type, const StringAnsiView& typeName)
Parameters
|
Types
type
|
|
StringAnsiView
typeName
|
VariantType(Types type, const StringView& typeName)
Declaration
public VariantType(Types type, const StringView& typeName)
Parameters
|
Types
type
|
|
StringView
typeName
|
VariantType(VariantType&& other)
Fields
Type
The type of the variant.
Declaration
public Types Type
Field Value
|
Types
|
TypeName
The optional additional full name of the scripting type. Used for Asset, Object, Enum, Structure types to describe type precisely.
Declaration
public char* TypeName
Field Value
|
char
|
Methods
~VariantType()
Declaration
public ~VariantType()
Returns
|
FORCE_INLINE
|
GetElementType()
GetTypeName()
Declaration
public char* GetTypeName() const
Returns
|
char
|
operator!=(const VariantType& other)
Declaration
public bool operator!=(const VariantType& other) const
Parameters
|
VariantType
other
|
Returns
|
bool
|
operator=(const Types& type)
Declaration
public VariantType operator=(const Types& type)
Parameters
|
Types
type
|
Returns
|
VariantType
|
operator=(const VariantType& other)
Declaration
public VariantType operator=(const VariantType& other)
Parameters
|
VariantType
other
|
Returns
|
VariantType
|
operator=(VariantType&& other)
Declaration
public VariantType operator=(VariantType&& other)
Parameters
|
VariantType
other
|
Returns
|
VariantType
|
operator==(const ScriptingTypeHandle& type)
Declaration
public bool operator==(const ScriptingTypeHandle& type) const
Parameters
|
ScriptingTypeHandle
type
|
Returns
|
bool
|
operator==(const Types& type)
Declaration
public bool operator==(const Types& type) const
Parameters
|
Types
type
|
Returns
|
bool
|
operator==(const VariantType& other)
Declaration
public bool operator==(const VariantType& other) const
Parameters
|
VariantType
other
|
Returns
|
bool
|
SetTypeName(const StringAnsiView& typeName)
Declaration
public void SetTypeName(const StringAnsiView& typeName)
Parameters
|
StringAnsiView
typeName
|
SetTypeName(const StringView& typeName)
ToString()
Declaration
public ::String ToString() const
Returns
|
::String
|
VariantType()
Declaration
public VariantType()
Returns
|
FORCE_INLINE
|
VariantType(Types type)
Declaration
public VariantType(Types type)
Parameters
|
Types
type
|
Returns
|
FORCE_INLINE
|