# UnselectLightProbe(int)

> Removes the selection from a light probe in the Light Probe edit tool.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Rendering](/engine/6000.5/script-reference/unityeditor/rendering.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void UnselectLightProbe(int lightProbeIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The light probe you would like to unselect.

### Remarks

The index matches those in the Probe Positions field on the LightProbeGroup component. If no Probes are being edited, this method doesn't do anything.

Additional Resources: [\_probePositions](/engine/6000.5/script-reference/unityengine/lightprobegroup/probepositions.md).

### Examples

```csharp
using UnityEditor;
using UnityEditor.Rendering;

public static class ProbeSelectionDemo
{
    [MenuItem("Example/Unselect First Probe")]
    private static void UnselectFirstProbe()
    {
        // If light probes are not currently being edited, or the probe is not selected, this does nothing.
        LightProbeGroupEditorUtility.UnselectLightProbe(0);
    }
}
```
