Table of Contents

Class BlockHolder

Namespace
easyar

Component that holds and manages Blocks in the scene.

BlockHolder

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the BlockHolder class.

Methods

blocks

All held Mega blocks.

get blocks(): BlockController[];

Returns

getBlockById(id)

Get Block by ID

getBlockById(id: string): BlockController;

Parameters

id

Returns

holdBlock(blockInfo, blockTransformInput)

Create Block node under ShadowRoot based on BlockInfo

holdBlock(blockInfo: BlockInfo, blockTransformInput?: LocalTransform | null): void;

Parameters

blockInfo
blockTransformInput

Returns