Version: 2020.1

Lightmapping.TryGetLightingSettings

切换到手册
public static bool TryGetLightingSettings (out LightingSettings settings);

参数

settings See Lightmapping.lightingSettings.

返回

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

描述

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.