Lightmapping.TryGetLightingSettings

Switch to Manual
public static bool TryGetLightingSettings (out LightingSettings settings);

Parameters

settingsSee Lightmapping.lightingSettings.

Returns

bool Returns true if there is an object, and false if it isn't.

Description

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

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