文档

Unity Engine

Unity Engine

RenderPickingResult

This struct contains information to notify Unity the outcome of this render picking callback.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Struct
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public readonly struct RenderPickingResult

Remarks

This struct type has to be returned from the RenderPickingCallback to notify Unity of:
If nothing has been rendered, return RenderPickingResult.NoOperation.

Static Fields

Value

Description

NoOperationThe constant value to be returned from HandleUtility.RenderPickingCallback delegates signifying that nothing has been rendered.

Constructors

Properties

Property

Description

renderedPickingIndexCountThe number of consecutive picking indices used during the current HandleUtility.RenderPickingCallback.
resolverThe callback to invoke to resolve a picking index into a GameObject reference.
resolverWithWorldPosThe callback to invoke to resolve a picking index into a GameObject reference.