Version: 2023.2

HandleUtility.DecodeSelectionId

切换到手册
public static int DecodeSelectionId (Vector4 selectionId);

参数

selectionId The selection ID retrieved from GPU to translate into a picking index.

返回

int The decoded picking index.

描述

Translates a Vector4 selectionId value retrieved from GPU into a single integer picking index.

Additional resources: HandleUtility.EncodeSelectionId.