# Geometry

> Geometry is a predefined render queue that Unity uses for opaque geometry.

## Definition

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

```csharp
Geometry = 2000
```

### Remarks

This render queue is the default that Unity uses to render all opaque materials. The `Geometry` render queue has a default value of 2000. You can change this value using the [Material.renderQueue](/engine/6000.6/script-reference/unityengine/material/renderqueue.md) or [Shader.renderQueue](/engine/6000.6/script-reference/unityengine/shader/renderqueue.md) APIs.

You can apply an offset to the default value. This offset must have a value between -500 and +500 to be considered opaque by Unity. Values outside this range fall back into other [RenderQueue](/engine/6000.6/script-reference/unityengine/rendering/renderqueue.md) categories like [RenderQueue.Background](/engine/6000.6/script-reference/unityengine/rendering/renderqueue/background.md).

Additional Resources: [Material.renderQueue](/engine/6000.6/script-reference/unityengine/material/renderqueue.md), [Shader.renderQueue](/engine/6000.6/script-reference/unityengine/shader/renderqueue.md), [subshader tags](/engine/6000.6/manual/materials-and-shaders/shaders/reference/sl-reference/sl-sub-shader-object/tags.md).

```csharp
using UnityEngine;
using UnityEngine.Rendering;

public class RenderQueueExample : MonoBehaviour
{
    public Material material;
    public int renderQueueOffset;

    void Start()
    {
        if (material != null)
        {
            // Adjust the render queue using the specified offset
            material.renderQueue = (int)(RenderQueue.Geometry + renderQueueOffset);
        }
    }
}
```

Assigns a custom render queue to a material, to force the sorting of objects rendered with this material.
