# RenderPickingResult

> Constructs a RenderPickingResult value.

## Definition

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

## RenderPickingResult(int, ResolvePickingCallback)

Constructs a `RenderPickingResult` value.

```csharp
public RenderPickingResult(int renderedPickingIndexCount, HandleUtility.ResolvePickingCallback resolver)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of picking indices used.**** (\[ResolvePickingCallback]\(/engine/6000.6/script-reference/unityeditor/handleutility/resolvepickingcallback)): The callback to invoke for resolving a picking index to a GameObject reference. This callback can be provided either as a [HandleUtility.ResolvePickingCallback](/engine/6000.6/script-reference/unityeditor/handleutility/resolvepickingcallback.md) or a [HandleUtility.ResolvePickingWithWorldPositionCallback](/engine/6000.6/script-reference/unityeditor/handleutility/resolvepickingwithworldpositioncallback.md) 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](/engine/6000.6/script-reference/unityeditor/renderpickingresult.md).

## RenderPickingResult(int, ResolvePickingWithWorldPositionCallback)

Constructs a `RenderPickingResult` value.

```csharp
public RenderPickingResult(int renderedPickingIndexCount, HandleUtility.ResolvePickingWithWorldPositionCallback resolver)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of picking indices used.**** (\[ResolvePickingWithWorldPositionCallback]\(/engine/6000.6/script-reference/unityeditor/handleutility/resolvepickingwithworldpositioncallback)): The callback to invoke for resolving a picking index to a GameObject reference. This callback can be provided either as a [HandleUtility.ResolvePickingCallback](/engine/6000.6/script-reference/unityeditor/handleutility/resolvepickingcallback.md) or a [HandleUtility.ResolvePickingWithWorldPositionCallback](/engine/6000.6/script-reference/unityeditor/handleutility/resolvepickingwithworldpositioncallback.md) 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](/engine/6000.6/script-reference/unityeditor/renderpickingresult.md).
