Table of Contents

Class BlockHolder

Ruang Nama
easyar

Component yang memegang Block dan mengelola Block dalam scene.

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)

Dapatkan Block berdasarkan ID

getBlockById(id: string): BlockController;

Parameter

id

Mengembalikan

holdBlock(blockInfo, blockTransformInput)

Buat node Block di bawah ShadowRoot berdasarkan BlockInfo

holdBlock(blockInfo: BlockInfo, blockTransformInput?: LocalTransform | null): void;

Parameter

blockInfo
blockTransformInput

Mengembalikan