Edit

Share via


SceneTransitionService.DoSceneTransition Method

Definition

Overloads

DoSceneTransition(IEnumerable<Func<Task>>, IProgressIndicator)

Fades out, enables progress indicator, execute scene operations in order, disables progress indicator, fades back in

DoSceneTransition(Func<Task>, IProgressIndicator)

Fades out, enables progress indicator, execute scene operation, disables progress indicator, fades back in

DoSceneTransition(Func<Task>, Func<Task>, IProgressIndicator)

Fades out, enables progress indicator, executes scene op 1, executes scene op 2, disables progress indicator, fades back in

DoSceneTransition(IEnumerable<Func<Task>>, Single, Single, IProgressIndicator)

Fades out, enables progress indicator, execute scene operations in order, disables progress indicator, fades back in

DoSceneTransition(IEnumerable<Func<Task>>, IProgressIndicator)

Fades out, enables progress indicator, execute scene operations in order, disables progress indicator, fades back in

public System.Threading.Tasks.Task DoSceneTransition (System.Collections.Generic.IEnumerable<Func<System.Threading.Tasks.Task>> sceneOperations, Microsoft.MixedReality.Toolkit.UI.IProgressIndicator progressIndicator = default);
abstract member DoSceneTransition : seq<Func<System.Threading.Tasks.Task>> * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
override this.DoSceneTransition : seq<Func<System.Threading.Tasks.Task>> * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
Public Function DoSceneTransition (sceneOperations As IEnumerable(Of Func(Of Task)), Optional progressIndicator As IProgressIndicator = Nothing) As Task

Parameters

sceneOperations
IEnumerable<Func<Task>>

A set of tasks from the Scene System.

progressIndicator
IProgressIndicator

If null, default progress indicator prefab will be used (or none if default is disabled in profile)

Returns

Implements

Applies to

DoSceneTransition(Func<Task>, IProgressIndicator)

Fades out, enables progress indicator, execute scene operation, disables progress indicator, fades back in

public System.Threading.Tasks.Task DoSceneTransition (Func<System.Threading.Tasks.Task> sceneOperation, Microsoft.MixedReality.Toolkit.UI.IProgressIndicator progressIndicator = default);
abstract member DoSceneTransition : Func<System.Threading.Tasks.Task> * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
override this.DoSceneTransition : Func<System.Threading.Tasks.Task> * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
Public Function DoSceneTransition (sceneOperation As Func(Of Task), Optional progressIndicator As IProgressIndicator = Nothing) As Task

Parameters

sceneOperation
Func<Task>
progressIndicator
IProgressIndicator

If null, default progress indicator prefab will be used (or none if default is disabled in profile)

Returns

Implements

Applies to

DoSceneTransition(Func<Task>, Func<Task>, IProgressIndicator)

Fades out, enables progress indicator, executes scene op 1, executes scene op 2, disables progress indicator, fades back in

public System.Threading.Tasks.Task DoSceneTransition (Func<System.Threading.Tasks.Task> sceneOp1, Func<System.Threading.Tasks.Task> sceneOp2, Microsoft.MixedReality.Toolkit.UI.IProgressIndicator progressIndicator = default);
abstract member DoSceneTransition : Func<System.Threading.Tasks.Task> * Func<System.Threading.Tasks.Task> * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
override this.DoSceneTransition : Func<System.Threading.Tasks.Task> * Func<System.Threading.Tasks.Task> * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
Public Function DoSceneTransition (sceneOp1 As Func(Of Task), sceneOp2 As Func(Of Task), Optional progressIndicator As IProgressIndicator = Nothing) As Task

Parameters

sceneOp1
Func<Task>
sceneOp2
Func<Task>
progressIndicator
IProgressIndicator

Returns

Implements

Applies to

DoSceneTransition(IEnumerable<Func<Task>>, Single, Single, IProgressIndicator)

Fades out, enables progress indicator, execute scene operations in order, disables progress indicator, fades back in

public System.Threading.Tasks.Task DoSceneTransition (System.Collections.Generic.IEnumerable<Func<System.Threading.Tasks.Task>> sceneOperations, float fadeOutTime, float fadeInTime, Microsoft.MixedReality.Toolkit.UI.IProgressIndicator progressIndicator = default);
abstract member DoSceneTransition : seq<Func<System.Threading.Tasks.Task>> * single * single * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
override this.DoSceneTransition : seq<Func<System.Threading.Tasks.Task>> * single * single * Microsoft.MixedReality.Toolkit.UI.IProgressIndicator -> System.Threading.Tasks.Task
Public Function DoSceneTransition (sceneOperations As IEnumerable(Of Func(Of Task)), fadeOutTime As Single, fadeInTime As Single, Optional progressIndicator As IProgressIndicator = Nothing) As Task

Parameters

sceneOperations
IEnumerable<Func<Task>>

A set of tasks from the Scene System.

fadeOutTime
Single

Overrides the default FadeOutTIme value.

fadeInTime
Single

Overrides the default FadeInTime value.

progressIndicator
IProgressIndicator

If null, default progress indicator prefab will be used (or none if default is disabled in profile)

Returns

Implements

Applies to