Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

ShadowDrawingSettings.batchLayerMask

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public uint batchLayerMask;

Description

Unity renders objects whose BatchFilterSettings.batchLayer value is enabled in this bit mask.

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.