pickingIndex
Specifies the picking index value that the first pickable object uses to write to the picking render texture.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public int pickingIndex { get; }
Remarks
The picking index must be encoded to a Vector4 value that uses HandleUtility.EncodeSelectionId, and output from the shader. If you are rendering more than one pickable object in the callback, increment the for every additional object.
selectionIdpickingIndexAdditional Resources: HandleUtility.EncodeSelectionId.