GetLightingDataAssetForScene(Scene)
Gets the LightingDataAsset associated with a specific scene. This method will return null if the scene has no LightingDataAsset, or the scene is invalid.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static LightingDataAsset GetLightingDataAssetForScene(Scene scene)
Parameters
The scene to get the LightingDataAsset for.
Returns
Type | Description |
|---|---|
| LightingDataAsset | The LightingDataAsset associated with the scene. |
Remarks
Additional Resources: Lightmapping.SetLightingDataAssetForScene.