Class BlockHolder
- Ruang Nama
- easyar
Komponen yang memegang Block, memegang dan mengelola Block di dalam adegan.
BlockHolder
Keterangan
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.
Metode
blocks
Semua Mega block yang dipegang.
get blocks(): BlockController[];
Mengembalikan
getBlockById(id)
Mendapatkan Block berdasarkan ID
getBlockById(id: string): BlockController;
Parameter
id
Mengembalikan
holdBlock(blockInfo, blockTransformInput)
Membuat node Block di bawah ShadowRoot berdasarkan BlockInfo
holdBlock(blockInfo: BlockInfo, blockTransformInput?: LocalTransform | null): void;
Parameter
blockInfoblockTransformInput