# GetAmbientProbe()

> Gets the ambient probe stored in a LightingDataAsset in L2 spherical harmonic encoding.

## Definition

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

```csharp
public SphericalHarmonicsL2 GetAmbientProbe()
```

### Returns

| Type                                                                                                  | Description        |
| ----------------------------------------------------------------------------------------------------- | ------------------ |
| [SphericalHarmonicsL2](/engine/6000.7/script-reference/unityengine/rendering/sphericalharmonicsl2.md) | The ambient probe. |
