# layer

> The layer to use for draw commands in this draw range.

## Definition

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

```csharp
public byte layer
```

### Remarks

This corresponds to [GameObject.layer](/engine/6000.0/script-reference/unityengine/gameobject/layer.md) and allows you to control which draw commands Unity renders in this draw range.
