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

BuildingBlock Class

Extends MonoBehaviour
Building Blocks are designed to help developers discover and install XR features using the Meta XR SDK.
The BuildingBlock MonoBehaviour is used as a container for Metadata. It stores its BlockId, InstanceId, Version as well as InstallationRoutineCheckpoint which helps the Building Blocks system to keep track of which blocks are installed or not, specifically to properly manage dependency chains. For more information, see Building Blocks
In Editor, you can delete this component by right-clicking the object and using Building Blocks > Break Block Connection, which will erase the Metadata and stop treating the GameObject as a block. Alternatively, you can also delete the component in the Inspector by clicking the Break Block Connection button.
The BuildingBlock MonoBehaviour is not meant to be added dynamically to an existing GameObject at runtime as it requires some specific metadata to properly work register with the Building Blocks system.
See Also
BlockId, InstanceId, Version, InstallationRoutineCheckpoint

Properties

Identifies the Meta.XR.BuildingBlocks.Editor.BlockData that this block originates from.
A unique identifier string representing the block instance.
The version integer of the block, set up during the installation of the block.
This value is used to detect whether or not an update is available for this block.
Contains all Metadata related to the installation of the block, typically the variants and interfaces choices required by the installation process.
This data is serialized into the scene (or prefab) on the related GameObject.
See Also
InstallationRoutineCheckpoint
Did you find this page helpful?
Thumbs up icon
Thumbs down icon