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.

Protected Fields

string _memberName[Get]
string _value[Get]

Properties

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.
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.

Member Functions

Constructor for a VariantCheckpoint, which helps serializing data defined by a variant such as the member name and the value set by the variant.
Parameters
memberName
Name of the member set by the variant
value
Value, serialized as a string, set by the variant
Did you find this page helpful?
Thumbs up icon
Thumbs down icon