Version: 2023.2
言語: 日本語
public int pickingIndex ;

説明

Specifies the picking index value that the first pickable object uses to write to the picking render texture.

The picking index must be encoded to a Vector4 selectionId value that uses HandleUtility.EncodeSelectionId, and output from the shader. If you are rendering more than one pickable object in the callback, increment the pickingIndex for every additional object.

Additional resources: HandleUtility.EncodeSelectionId.