Table of Contents

Class BlockHolder

命名空間
easyar

BlockHolder 持有Block的組件,在場景中持有並管理Block.

BlockHolder

備註

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.

方法

blocks

所有被持有的Mega block.

get blocks(): BlockController[];

傳回值

getBlockById(id)

根據ID獲取Block

getBlockById(id: string): BlockController;

參數

id

傳回值

holdBlock(blockInfo, blockTransformInput)

根據BlockInfo在ShadowRoot下創建Block節點

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

參數

blockInfo
blockTransformInput

傳回值