Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetLightingSettings(out LightingSettings)

Fetches the Lighting Settings for the current Scene. Will return false if it is null.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

TryGetLightingSettings(LightingSettings)

public static bool TryGetLightingSettings(out LightingSettings settings)

Parameters

Returns

Type

Description

boolReturns 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.