Class BlockHolder
- 名前空間
- easyar
Block を保持し、シーン内で Block を管理する Component。
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;
パラメーター
blockInfoblockTransformInput