IMixedRealitySceneSystem.SetLightingScene Method

Definition

Sets the current lighting scene. The lighting scene determines ambient light and skybox settings. It can optionally contain light objects. If the lighting scene is already loaded, no action will be taken. If a lighting scene transition is in progress, request will be queued and executed when the transition is complete.

C#
public void SetLightingScene (string newLightingSceneName, Microsoft.MixedReality.Toolkit.SceneSystem.LightingSceneTransitionType transitionType = Microsoft.MixedReality.Toolkit.SceneSystem.LightingSceneTransitionType.None, float transitionDuration = 1);

Parameters

newLightingSceneName
String
transitionType
LightingSceneTransitionType

The transition type to use. See LightingSceneTransitionType for information about each transition type.

transitionDuration
Single

The duration of the transition (if not None).

Applies to

Produkt Versionen
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0