文档

Unity Engine

Unity Engine

SetBatchBuffer(BatchID, GraphicsBufferHandle)

Change the GraphicsBuffer associated with the given batch. Thread-safe alias for BatchRendererGroup.SetBatchBuffer.
阅读时间1 分钟最后更新于 10 天前

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.