# SetInstanceMultiplier(uint)

> Adds a command to multiply the instance count of every draw call by a specific multiplier.

## Definition

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

```csharp
public void SetInstanceMultiplier(uint multiplier)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)):&#x20;

### Remarks

Changing the instance multiplier is useful for stereo rendering optimizations such as single pass instanced rendering. For example, if you set the multiplier to 2, a command that draws one instance, instead draws two, and a command that draws two instances, draws four. See Single Pass Instanced Rendering for more information.

The multiplier is used until you reset it by calling this function again with a new value. The default multiplier is 1. Passing a parameter value of 0 to this function also sets the instance multiplier to 1.

The instance multiplier affects draw calls submitted by internal Unity Engine functions as well as [CommandBuffer.DrawMesh](/engine/6000.6/script-reference/unityengine/rendering/commandbuffer/drawmesh.md), [CommandBuffer.DrawMeshInstanced](/engine/6000.6/script-reference/unityengine/rendering/commandbuffer/drawmeshinstanced.md), [Graphics.DrawMeshInstanced](/engine/6000.6/script-reference/unityengine/graphics/drawmeshinstanced.md), [CommandBuffer.DrawProcedural](/engine/6000.6/script-reference/unityengine/rendering/commandbuffer/drawprocedural.md), and [Graphics.DrawProcedural](/engine/6000.6/script-reference/unityengine/graphics/drawprocedural.md)

Note that the multiplier is not used for the indirect commands, [CommandBuffer.DrawMeshInstancedIndirect](/engine/6000.6/script-reference/unityengine/rendering/commandbuffer/drawmeshinstancedindirect.md), [Graphics.DrawMeshInstancedIndirect](/engine/6000.6/script-reference/unityengine/graphics/drawmeshinstancedindirect.md), [CommandBuffer.DrawProceduralIndirect](/engine/6000.6/script-reference/unityengine/rendering/commandbuffer/drawproceduralindirect.md), [Graphics.DrawProceduralIndirect](/engine/6000.6/script-reference/unityengine/graphics/drawproceduralindirect.md).
