GetInstantiatedLightProbesForScene(Scene)
Gets an instantiated clone of the LightProbes object for a specific scene.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static LightProbes GetInstantiatedLightProbesForScene(Scene scene)
Parameters
The scene to get the shared light probe data for.
Returns
Type | Description |
|---|---|
| LightProbes | The cloned light probe data for the scene. |
Remarks
If you modify the object returned by this method, you will only affect the lighting of . Modifications will not affect assets.
LightProbessceneNote: This function automatically instantiates the object and makes it unique to the passed scene. You need to destroy the object when it's no longer needed. You can also use Resources.UnloadUnusedAssets to destroy a object, which will be called automatically when you switch to a new scene.
LightProbesLightProbesLightProbesAdditional Resources: LightProbes.GetSharedLightProbesForScene.