文档

Unity Engine

Unity Engine

RenderPickingResult

Constructs a RenderPickingResult value.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor

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.