drawCommandPickingInstanceIDs
The instance IDs that are associated with the draw commands.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
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 is equal to BatchCullingViewType.Picking or BatchCullingViewType.SelectionOutline. Otherwise, Unity ignores this value and you can leave it set to .
nullEach 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:
- The first BatchCullingOutputDrawCommands.drawCommandCount elements correspond to the draw commands in BatchCullingOutputDrawCommands.drawCommands.
- The next BatchCullingOutputDrawCommands.indirectDrawCommandCount elements correspond to the draw commands in BatchCullingOutputDrawCommands.indirectDrawCommands.
- The next BatchCullingOutputDrawCommands.proceduralDrawCommandCount elements correspond to the draw commands in BatchCullingOutputDrawCommands.proceduralDrawCommands.
- The last BatchCullingOutputDrawCommands.proceduralIndirectDrawCommandCount elements correspond to the draw commands in BatchCullingOutputDrawCommands.proceduralIndirectDrawCommands.
The size of this array should be equal to the sum of BatchCullingOutputDrawCommands.drawCommandCount, BatchCullingOutputDrawCommands.indirectDrawCommandCount, BatchCullingOutputDrawCommands.proceduralDrawCommandCount, and BatchCullingOutputDrawCommands.proceduralIndirectDrawCommandCount.
See Also: BatchRendererGroup.SetPickingMaterial.