Version: 2023.2

HandleUtility.ResolvePickingWithWorldPositionCallback

切换到手册
public delegateObject ResolvePickingWithWorldPositionCallback (int localPickingIndex, Vector3 worldPos, float depth);

参数

localPickingIndex The 0-based index that specifies what picking index was selected.
worldPos The world space position where the picking occurred.
depth The raw depth value read from the picking render texture.

描述

The delegate type to return from RenderPickingCallback through the RenderPickingResult.resolverWithWorldPos member, with the additional world space position and depth information of where the click occurred.

Additional resources: RenderPickingResult.