기술 자료

Unity Engine

Unity Engine

RenderPickingResult

Constructs a RenderPickingResult value.
읽는 시간 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.