文档

Unity Engine

Unity Engine

batchLayerMask

Unity renders objects whose BatchFilterSettings.batchLayer value is enabled in this bit mask.
阅读时间1 分钟最后更新于 1 个月前

Definition

public uint batchLayerMask { get; set; }

Remarks

Unity renders the object if you enable the BatchFilterSettings.batchLayer value in this bit mask. You can use BatchFilterSettings.batchLayer to specify a batch layer in each BatchDrawRange.
Objects that are not rendered using BatchRendererGroup are in batch layer
0
, so you can use bit 0 of
batchLayerMask
to control whether they're included in this renderer list.