# BatchFilterSettings

> Represents settings that Unity applies to draw commands in this draw range.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct BatchFilterSettings
```

## Remarks

For more information, see [BatchRendererGroup](/engine/6000.0/manual/analysis/graphics-performance-profiling/in-urp/reduce-draw-calls-urp/batch-renderer-group.md).

## Fields

| Value                                                                                                                 | Description                                                           |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [layer](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/layer.md)                           | The layer to use for draw commands in this draw range.                |
| [rendererPriority](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/rendererpriority.md)     | The sorting priority to use for draw commands in this draw range.     |
| [renderingLayerMask](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/renderinglayermask.md) | The rendering layer mask to use for draw commands in this draw range. |

## Properties

| Property                                                                                                              | Description                                                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [allDepthSorted](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/alldepthsorted.md)         | Indicates whether all draw commands in the current draw range have the [BatchDrawCommandFlags.HasSortingPosition](/engine/6000.0/script-reference/unityengine/rendering/batchdrawcommandflags/hassortingposition.md) flag set.    |
| [batchLayer](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/batchlayer.md)                 | The batch layer to use for draw commands in this draw range.                                                                                                                                                                      |
| [motionMode](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/motionmode.md)                 | Specifies how to generate motion vectors in this draw range.                                                                                                                                                                      |
| [receiveShadows](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/receiveshadows.md)         | Indicates whether instances from draw commands in this draw range should receive shadows.                                                                                                                                         |
| [sceneCullingMask](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/scenecullingmask.md)     | Use this bit mask to discard the draw commands in a particular context. A draw command is not discarded if the expression `(1 << layer) & sceneCullingMask` is true. This field is typically used when rendering Editor previews. |
| [shadowCastingMode](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/shadowcastingmode.md)   | Specifies how instances from the draw commands in this draw range cast shadows.                                                                                                                                                   |
| [staticShadowCaster](/engine/6000.0/script-reference/unityengine/rendering/batchfiltersettings/staticshadowcaster.md) | Indicates whether instances from the draw commands in this draw range render into cached shadow maps.                                                                                                                             |
