Class BlockHolder
- Espacio de nombres
- easyar
Componente que contiene Blocks, los mantiene y gestiona en la escena.
BlockHolder
Observaciones
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.
Métodos
blocks
Todos los Mega-blocks contenidos.
get blocks(): BlockController[];
Devuelve
getBlockById(id)
Obtener Block por ID
getBlockById(id: string): BlockController;
Parámetros
id
Devuelve
holdBlock(blockInfo, blockTransformInput)
Crear nodo Block bajo ShadowRoot según BlockInfo
holdBlock(blockInfo: BlockInfo, blockTransformInput?: LocalTransform | null): void;
Parámetros
blockInfoblockTransformInput