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;
パラメーター
blockInfoblockTransformInput