ドキュメント

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.