Class BlockHolder
- Namespace
- easyar
BlockHolder The component that holds the Block, holds and manages the Block 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 according to BlockInfo
holdBlock(blockInfo: BlockInfo, blockTransformInput?: LocalTransform | null): void;
Parameters
blockInfoblockTransformInput