# TryGetLightingSettings(out LightingSettings)

> Fetches the Lighting Settings for the current Scene. Will return false if it is null.

## Definition

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

## TryGetLightingSettings(LightingSettings)

```csharp
public static bool TryGetLightingSettings(out LightingSettings settings)
```

### Parameters

**** (\[LightingSettings]\(/engine/6000.7/script-reference/unityengine/lightingsettings)): See [Lightmapping.lightingSettings](/engine/6000.7/script-reference/unityeditor/lightmapping/lightingsettings.md).

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if there is an object, and false if it isn't. |

### Remarks

Useful if you don't want an exception to be thrown if lightingSettings is null.
