Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RenderPickingResult

This struct contains information to notify Unity the outcome of this render picking callback.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Struct
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.