# RenderPickingResult

> This struct contains information to notify Unity the outcome of this render picking callback.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public readonly struct RenderPickingResult
```

## Remarks

This struct type has to be returned from the [RenderPickingCallback](/engine/6000.7/script-reference/unityeditor/handleutility/renderpickingcallback.md) to notify Unity of:

* The number of consecutive picking indices used during the callback
* The [HandleUtility.ResolvePickingCallback](/engine/6000.7/script-reference/unityeditor/handleutility/resolvepickingcallback.md) delegate to invoke when the user clicks on a pixel, whose value is the `selectionId` encoded from the picking index used during the callback. Refer to [resolver](/engine/6000.7/script-reference/unityeditor/renderpickingresult/resolver.md) for more information.
* Alternatively, you can use a [HandleUtility.ResolvePickingWithWorldPositionCallback](/engine/6000.7/script-reference/unityeditor/handleutility/resolvepickingwithworldpositioncallback.md) delegate if you need the world space position or the depth value for the resolve callback to work. Refer to [resolverWithWorldPos](/engine/6000.7/script-reference/unityeditor/renderpickingresult/resolverwithworldpos.md).

If nothing has been rendered, return [RenderPickingResult.NoOperation](/engine/6000.7/script-reference/unityeditor/renderpickingresult/nooperation.md).

## Static Fields

| Value                                                                                         | Description                                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [NoOperation](/engine/6000.7/script-reference/unityeditor/renderpickingresult/nooperation.md) | The constant value to be returned from [HandleUtility.RenderPickingCallback](/engine/6000.7/script-reference/unityeditor/handleutility/renderpickingcallback.md) delegates signifying that nothing has been rendered. |

## Constructors

| Constructor                                                                                                                                                                                                                                       | Description                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [RenderPickingResult(System.Int32,UnityEditor.HandleUtility.ResolvePickingCallback)](/engine/6000.7/script-reference/unityeditor/renderpickingresult/ctor.md#renderpickingresult\(int-resolvepickingcallback\))                                   | Constructs a `RenderPickingResult` value. |
| [RenderPickingResult(System.Int32,UnityEditor.HandleUtility.ResolvePickingWithWorldPositionCallback)](/engine/6000.7/script-reference/unityeditor/renderpickingresult/ctor.md#renderpickingresult\(int-resolvepickingwithworldpositioncallback\)) | Constructs a `RenderPickingResult` value. |

## Properties

| Property                                                                                                                  | Description                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [renderedPickingIndexCount](/engine/6000.7/script-reference/unityeditor/renderpickingresult/renderedpickingindexcount.md) | The number of consecutive picking indices used during the current [HandleUtility.RenderPickingCallback](/engine/6000.7/script-reference/unityeditor/handleutility/renderpickingcallback.md). |
| [resolver](/engine/6000.7/script-reference/unityeditor/renderpickingresult/resolver.md)                                   | The callback to invoke to resolve a picking index into a GameObject reference.                                                                                                               |
| [resolverWithWorldPos](/engine/6000.7/script-reference/unityeditor/renderpickingresult/resolverwithworldpos.md)           | The callback to invoke to resolve a picking index into a GameObject reference.                                                                                                               |
