API reference
API reference
Select your platform
No SDKs available
No versions available

VariantCheckpoint Class

Describes a variant used for the installation of a block.
The data is serialized within the InstallationRoutineCheckpoint which is stored within the owner BuildingBlock MonoBehaviour. Installation Routines and Variants are a part of Meta XR Building Blocks. For more information, see Building Blocks
The data is set automatically into these serializable classes on installation of a BuildingBlock.

Constructors

VariantCheckpoint ( memberName , value )
Constructor for a VariantCheckpoint, which helps serializing data defined by a variant such as the member name and the value set by the variant.
Signature
VariantCheckpoint(string memberName, string value)
Parameters
memberName: string  Name of the member set by the variant
value: string  Value, serialized as a string, set by the variant

Protected Fields

_memberName : string
Signature
string _memberName
_value : string
Signature
string _value

Properties

MemberName : string
[Get]
Name of the member set by this variant.
During installation, it is used by reflection to figure out which member needs to be set by this variant. After installation, it is stored to keep an history of the selected variants.
Signature
string MemberName
Value : string
[Get]
Serialized value, as a string, set by this variant.
During installation, it is used to set the value of the variant (to the member represented by MemberName). After installation, it is stored to keep an history of the selected variants.
Signature
string Value