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

返回