# drawCommandPickingInstanceIDs

> The instance IDs that are associated with the draw commands.

## Definition

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

> **Warning:**
>
> **Removed.** drawCommandPickingInstanceIDs is deprecated. Use drawCommandPickingEntityIds instead.

```csharp
public int* drawCommandPickingInstanceIDs { get; set; }
```

### Remarks

Unity only uses this command when it renders object-picking or selection data in the Editor, which is when [BatchCullingContext.viewType](/engine/6000.6/script-reference/unityengine/rendering/batchcullingcontext/viewtype.md) is equal to [BatchCullingViewType.Picking](/engine/6000.6/script-reference/unityengine/rendering/batchcullingviewtype/picking.md) or [BatchCullingViewType.SelectionOutline](/engine/6000.6/script-reference/unityengine/rendering/batchcullingviewtype/selectionoutline.md). Otherwise, Unity ignores this value and you can leave it set to `null`.

Each element in this array corresponds to a draw command in one of the various draw command arrays. The arrays are considered in the following order, which is the same order as they are defined in the struct:

1. The first [BatchCullingOutputDrawCommands.drawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawcommandcount.md) elements correspond to the draw commands in [BatchCullingOutputDrawCommands.drawCommands](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawcommands.md).
2. The next [BatchCullingOutputDrawCommands.indirectDrawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/indirectdrawcommandcount.md) elements correspond to the draw commands in [BatchCullingOutputDrawCommands.indirectDrawCommands](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/indirectdrawcommands.md).
3. The next [BatchCullingOutputDrawCommands.proceduralDrawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduraldrawcommandcount.md) elements correspond to the draw commands in [BatchCullingOutputDrawCommands.proceduralDrawCommands](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduraldrawcommands.md).
4. The last [BatchCullingOutputDrawCommands.proceduralIndirectDrawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduralindirectdrawcommandcount.md) elements correspond to the draw commands in [BatchCullingOutputDrawCommands.proceduralIndirectDrawCommands](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduralindirectdrawcommands.md).

The size of this array should be equal to the sum of [BatchCullingOutputDrawCommands.drawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/drawcommandcount.md), [BatchCullingOutputDrawCommands.indirectDrawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/indirectdrawcommandcount.md), [BatchCullingOutputDrawCommands.proceduralDrawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduraldrawcommandcount.md), and [BatchCullingOutputDrawCommands.proceduralIndirectDrawCommandCount](/engine/6000.6/script-reference/unityengine/rendering/batchcullingoutputdrawcommands/proceduralindirectdrawcommandcount.md).

See Also: [BatchRendererGroup.SetPickingMaterial](/engine/6000.6/script-reference/unityengine/rendering/batchrenderergroup/setpickingmaterial.md).
