API Reference

Class List

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

meshInstancesMeshInstance[]

The mesh instances to be batched.

dynamicboolean

Whether this batch is dynamic (supports transforming mesh instances at runtime).

batchGroupIdnumber

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.

booleandynamic

Whether this batch is dynamic (supports transforming mesh instances at runtime).

MeshInstancemeshInstance

A single combined mesh instance, the result of batching.

MeshInstance[]origMeshInstances

An array of original mesh instances, from which this batch was generated.