Class CameraFaderQuad
Quad-based implementation if ICameraFader. Instantiates quads in front of cameras to achieve fade out / in effect.
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Extensions.SceneTransitions
Assembly: cs.temp.dll.dll
Syntax
public class CameraFaderQuad : ICameraFader
Properties
State
Declaration
public CameraFaderState State { get; }
Property Value
Type | Description |
---|---|
CameraFaderState |
Methods
FadeInAsync(Single)
Applies a fade-in effect over time. Must be called after FadeOutAsync has completed.
Declaration
public Task FadeInAsync(float fadeInTime)
Parameters
Type | Name | Description |
---|---|---|
Single | fadeInTime | The duration of the fade |
Returns
Type | Description |
---|---|
Task |
FadeOutAsync(Single, Color, IEnumerable<Camera>)
Applies a fade-out effect over time.
Declaration
public Task FadeOutAsync(float fadeOutTime, Color color, IEnumerable<Camera> targets)
Parameters
Type | Name | Description |
---|---|---|
Single | fadeOutTime | The duration of the fade |
Color | color | The color of the fade |
IEnumerable<Camera> | targets | Which cameras will receive the effect |
Returns
Type | Description |
---|---|
Task |
Initialize(SceneTransitionServiceProfile)
Initializes the camera fader class with a transition profile.
Declaration
public void Initialize(SceneTransitionServiceProfile profile)
Parameters
Type | Name | Description |
---|---|---|
SceneTransitionServiceProfile | profile | The scene transition service profile. |
OnDestroy()
Used to destroy any assets created. May be called in middle of a transition.
Declaration
public void OnDestroy()