Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RenderPickingResult

Constructs a RenderPickingResult value.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

RenderPickingResult(int, ResolvePickingCallback)

Constructs a
RenderPickingResult
value.
public RenderPickingResult(int renderedPickingIndexCount, HandleUtility.ResolvePickingCallback resolver)

Parameters

renderedPickingIndexCount

The number of picking indices used.

The callback to invoke for resolving a picking index to a GameObject reference. This callback can be provided either as a HandleUtility.ResolvePickingCallback or a HandleUtility.ResolvePickingWithWorldPositionCallback based on whether you need the information of the world space position or the depth value for where the picking occurred.

Remarks

Additional Resources: RenderPickingResult.

RenderPickingResult(int, ResolvePickingWithWorldPositionCallback)

Constructs a
RenderPickingResult
value.
public RenderPickingResult(int renderedPickingIndexCount, HandleUtility.ResolvePickingWithWorldPositionCallback resolver)

Parameters

renderedPickingIndexCount

The number of picking indices used.

The callback to invoke for resolving a picking index to a GameObject reference. This callback can be provided either as a HandleUtility.ResolvePickingCallback or a HandleUtility.ResolvePickingWithWorldPositionCallback based on whether you need the information of the world space position or the depth value for where the picking occurred.

Remarks

Additional Resources: RenderPickingResult.