# SetAmbientProbe(SphericalHarmonicsL2)

> Sets the ambient probe stored in a LightingDataAsset.

## Definition

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

```csharp
public void SetAmbientProbe(SphericalHarmonicsL2 probe)
```

### Parameters

**** (\[SphericalHarmonicsL2]\(/engine/6000.5/script-reference/unityengine/rendering/sphericalharmonicsl2)): The ambient probe to set.
