Version: 2023.2

HandleUtility.EncodeSelectionId

切换到手册
public static Vector4 EncodeSelectionId (int pickingIndex);

参数

pickingIndex The picking index to encode. For example, a picking index passed from RenderPickingArgs.pickingIndex).

返回

Vector4 The Vector4 selectionId value used for rendering.

描述

Translates a single integer picking index into a Vector4 selectionId value. The Vector4 selectionId is used to render the picking render textures during picking rendering.