Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetBatchBuffer(BatchID, GraphicsBufferHandle)

Change the GraphicsBuffer associated with the given batch. Thread-safe alias for BatchRendererGroup.SetBatchBuffer.
Read time 1 minuteLast updated 4 days ago

Definition

public void SetBatchBuffer(BatchID batchID, GraphicsBufferHandle buffer)

Parameters

batchID

Unity changes the batch with this ID.

The
GraphicsBufferHandle
of the
GraphicsBuffer
to be associated with the batch.

Remarks

Unity doesn't apply the change immediately. The same rules apply as for BatchRendererGroup.SetBatchBuffer: don't dispose of the previous
GraphicsBuffer
in the same frame that you call this method.