Version: 2023.2

LightProbes.GetInstantiatedLightProbesForScene

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

参数

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

返回

LightProbes The cloned light probe data for the scene.

描述

Gets an instantiated clone of the LightProbes object for a specific scene.

If you modify the LightProbes object returned by this method, you will only affect the lighting of scene. Modifications will not affect assets.

Note: This function automatically instantiates the LightProbes object and makes it unique to the passed scene. You need to destroy the LightProbes object when it's no longer needed. You can also use Resources.UnloadUnusedAssets to destroy a LightProbes object, which will be called automatically when you switch to a new scene.

See Also: LightProbes.GetSharedLightProbesForScene.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961