Batch
Holds information about batched mesh instances. Created in BatchManager#create.
Summary
Properties
batchGroupId | Link this batch to a specific batch group. |
dynamic | Whether this batch is dynamic (supports transforming mesh instances at runtime). |
meshInstance | A single combined mesh instance, the result of batching. |
origMeshInstances | An array of original mesh instances, from which this batch was generated. |
Details
Constructor
Batch(meshInstances, dynamic, batchGroupId)
Create a new Batch instance.
Parameters
meshInstances | MeshInstance[] | The mesh instances to be batched. |
dynamic | boolean | Whether this batch is dynamic (supports transforming mesh instances at runtime). |
batchGroupId | number | Link this batch to a specific batch group. This is done automatically with default batches. |
Properties
numberbatchGroupId
Link this batch to a specific batch group. This is done automatically with default batches.
MeshInstance[]origMeshInstances
An array of original mesh instances, from which this batch was generated.