Appearance
Instances beta
Instance-data handles for rep.setInstances(...) / entity.setInstances(...) – GPU mesh instancing draws one copy of a mesh per transform, far cheaper than real entities. Instances are rendering-only (no physics, collision, or per-instance identity); use clone() for objects the user interacts with. Gate with environment.features.has('instancing').
Static Methods
transforms()
javascript
Instances.transforms(list: Array<Transform | Vector3>): ObjectBuild an instance-data handle from a list of transforms. Each entry is a Transform (full pose) or a Vector3 (a copy placed at that position). A bare array is also accepted – setInstances([...]) is sugar for setInstances(Instances.transforms([...])).
Parameters:
list(Array<Transform | Vector3>) - Per-instance transforms.
Returns: Object