Class SceneTransitionService
Inheritance
SceneTransitionService
Assembly: cs.temp.dll.dll
public class SceneTransitionService : BaseExtensionService, ISceneTransitionService, IMixedRealityExtensionService, IMixedRealityService, IDisposable
Constructors
Declaration
public SceneTransitionService(IMixedRealityServiceRegistrar registrar, string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Declaration
public SceneTransitionService(IMixedRealityServiceRegistrar registrar, string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Declaration
public SceneTransitionService(string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Type |
Name |
Description |
String |
name |
Friendly name of the service.
|
UInt32 |
priority |
Service priority. Used to determine order of instantiation.
|
BaseMixedRealityProfile |
profile |
The service's configuration profile.
|
Declaration
public SceneTransitionService(string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Type |
Name |
Description |
String |
name |
Friendly name of the service.
|
UInt32 |
priority |
Service priority. Used to determine order of instantiation.
|
BaseMixedRealityProfile |
profile |
The service's configuration profile.
|
Properties
Declaration
public Color FadeColor { get; set; }
Property Value
Declaration
public Color FadeColor { get; set; }
Property Value
Declaration
public float FadeInTime { get; set; }
Property Value
Declaration
public float FadeInTime { get; set; }
Property Value
Declaration
public float FadeOutTime { get; set; }
Property Value
Declaration
public float FadeOutTime { get; set; }
Property Value
Declaration
public CameraFaderTargets FadeTargets { get; set; }
Property Value
Declaration
public CameraFaderTargets FadeTargets { get; set; }
Property Value
Declaration
public Action OnTransitionCompleted { get; set; }
Property Value
Declaration
public Action OnTransitionCompleted { get; set; }
Property Value
Declaration
public Action OnTransitionStarted { get; set; }
Property Value
Declaration
public Action OnTransitionStarted { get; set; }
Property Value
Declaration
public bool TransitionInProgress { get; set; }
Property Value
Declaration
public bool TransitionInProgress { get; set; }
Property Value
Declaration
public float TransitionProgress { get; set; }
Property Value
Declaration
public float TransitionProgress { get; set; }
Property Value
Declaration
public bool UseFadeColor { get; set; }
Property Value
Declaration
public bool UseFadeColor { get; set; }
Property Value
Methods
Declaration
public override void Destroy()
Overrides
Declaration
public override void Destroy()
Overrides
Declaration
public Task DoSceneTransition(Func<Task> sceneOp1, Func<Task> sceneOp2, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
Func<Task> |
sceneOp1 |
|
Func<Task> |
sceneOp2 |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public Task DoSceneTransition(Func<Task> sceneOp1, Func<Task> sceneOp2, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
Func<Task> |
sceneOp1 |
|
Func<Task> |
sceneOp2 |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public Task DoSceneTransition(Func<Task> sceneOperation, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
Func<Task> |
sceneOperation |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public Task DoSceneTransition(Func<Task> sceneOperation, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
Func<Task> |
sceneOperation |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public Task DoSceneTransition(IEnumerable<Func<Task>> sceneOperations, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
IEnumerable<Func<Task>> |
sceneOperations |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public Task DoSceneTransition(IEnumerable<Func<Task>> sceneOperations, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
IEnumerable<Func<Task>> |
sceneOperations |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public Task DoSceneTransition(IEnumerable<Func<Task>> sceneOperations, float fadeOutTime, float fadeInTime, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
IEnumerable<Func<Task>> |
sceneOperations |
|
Single |
fadeOutTime |
|
Single |
fadeInTime |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public Task DoSceneTransition(IEnumerable<Func<Task>> sceneOperations, float fadeOutTime, float fadeInTime, IProgressIndicator progressIndicator = null)
Parameters
Type |
Name |
Description |
IEnumerable<Func<Task>> |
sceneOperations |
|
Single |
fadeOutTime |
|
Single |
fadeInTime |
|
IProgressIndicator |
progressIndicator |
|
Returns
Declaration
public override void Enable()
Overrides
Declaration
public override void Enable()
Overrides
Declaration
Returns
Declaration
Returns
Declaration
public Task FadeIn(float fadeInTime)
Parameters
Type |
Name |
Description |
Single |
fadeInTime |
|
Returns
Declaration
public Task FadeIn(float fadeInTime)
Parameters
Type |
Name |
Description |
Single |
fadeInTime |
|
Returns
Declaration
Returns
Declaration
Returns
Declaration
public Task FadeOut(float fadeOutTime)
Parameters
Type |
Name |
Description |
Single |
fadeOutTime |
|
Returns
Declaration
public Task FadeOut(float fadeOutTime)
Parameters
Type |
Name |
Description |
Single |
fadeOutTime |
|
Returns
Declaration
public Task HideProgressIndicator()
Returns
Declaration
public Task HideProgressIndicator()
Returns
Declaration
public override void Initialize()
Overrides
Declaration
public override void Initialize()
Overrides
Declaration
public void SetCustomFadeTargetCameras(IEnumerable<Camera> customFadeTargetCameras)
Parameters
Type |
Name |
Description |
IEnumerable<Camera> |
customFadeTargetCameras |
|
Declaration
public void SetCustomFadeTargetCameras(IEnumerable<Camera> customFadeTargetCameras)
Parameters
Type |
Name |
Description |
IEnumerable<Camera> |
customFadeTargetCameras |
|
Declaration
public void SetProgressMessage(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Declaration
public void SetProgressMessage(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Declaration
public void SetProgressValue(float progress)
Parameters
Type |
Name |
Description |
Single |
progress |
|
Declaration
public void SetProgressValue(float progress)
Parameters
Type |
Name |
Description |
Single |
progress |
|
Declaration
public Transform ShowDefaultProgressIndicator()
Returns
Type |
Description |
Transform |
|
Declaration
public Transform ShowDefaultProgressIndicator()
Returns
Type |
Description |
Transform |
|
Implements
IDisposable