Version: 2023.2

LightProbes.GetSharedLightProbesForScene

切换到手册
public static LightProbes GetSharedLightProbesForScene (SceneManagement.Scene scene);

参数

scene The scene to get the shared light probe data for.

返回

LightProbes The shared light probe data for the scene.

描述

Gets the shared LightProbes object for a specific scene.

Unless you need to modify an asset, it's not recommended to modify a LightProbes object returned by this method. You may affect all currently loaded versions of the scene, or change the light probe data stored in Lighting Data assets. Use LightProbes.GetInstantiatedLightProbesForScene instead.

Additional resources: LightProbes.GetInstantiatedLightProbesForScene.