Version: 2020.1

BatchRendererGroup

class in UnityEngine.Rendering

切换到手册

描述

批次的组。

表示多个批次的容器,这些批次共享相同的剔除方法。 另请参阅:OnPerformCulling

构造函数

BatchRendererGroup创建新的 BatchRendererGroup。

公共函数

AddBatch向组添加一个新批次。
Dispose删除组。
GetBatchMatrices获取与一个批次关联的矩阵。
GetBatchMatrixArray获取给定批次的实例化矢量属性的数组。
GetBatchScalarArray获取给定批次的实例化浮点属性的数组。
GetBatchScalarArrayIntRetrieves an array of instanced int properties for a given batch.
GetBatchVectorArray获取给定批次的实例化矢量属性的数组。
GetBatchVectorArrayIntRetrieves an array of instanced int vector properties for a given batch.
GetNumBatches获取添加到组的批次的数量。
RemoveBatch从组中删除批次。 注意:考虑到性能,删除通过 emplace_back() 完成,这样是以数组的最后索引直接替换被删除的批次索引,可以减小大小。 如果要保存自己的批次索引数组,必须重新生成或者像 RemoveBatch 那样应用相同的 emplace_back() 机制。
SetBatchBounds设置批次的包围盒。
SetBatchFlagsSets flag bits that enable special behavior for this Hybrid Renderer V2 batch.
SetBatchPropertyMetadataSets all Hybrid Renderer DOTS instancing metadata for this batch, and marks it as a Hybrid Renderer V2 batch.
SetInstancingData更新批次。

委托

OnPerformCulling剔除回调函数。