Class BlockHolder
- 네임스페이스
- easyar
Block을 보유하는 컴포넌트로, 장면(scene) 내에서 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를 통해 블록 가져오기
getBlockById(id: string): BlockController;
매개 변수
id
반환 값
holdBlock(blockInfo, blockTransformInput)
BlockInfo에 따라 ShadowRoot 아래에 Block 노드를 생성합니다.
holdBlock(blockInfo: BlockInfo, blockTransformInput?: LocalTransform | null): void;
매개 변수
blockInfoblockTransformInput