文档

Unity Engine

Unity Engine

TryGetLightingSettings(out LightingSettings)

Fetches the Lighting Settings for the current Scene. Will return false if it is null.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

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.