Version: 2022.1
public Rendering.BatchID AddBatch (NativeArray<MetadataValue> batchMetadata, GraphicsBufferHandle buffer);

参数

batchMetadata Metadata properties for this batch.
buffer The GraphicsBufferHandle of the GraphicsBuffer associated with this batch.

返回

BatchID ID of the batch that Unity creates.

描述

Thread-safe alias for BatchRendererGroup.AddBatch.