You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update scene loader interface
* add new transitions to scene loaders
* add transitiontoscenesfromscenes test
* add transitiontoscenesfromall test
* add documentation for new transition methods
Copy file name to clipboardExpand all lines: Runtime/Interfaces/ISceneLoader.cs
+101-2Lines changed: 101 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ public interface ISceneLoader : IDisposable
15
15
ISceneManagerManager{get;}
16
16
17
17
/// <summary>
18
-
/// Triggers a transition to a group of scens.
18
+
/// Triggers a transition to a group of scenes from the active scene.
19
19
/// It will transition from the current active scene (<see cref="ISceneManager.GetActiveScene()"/>)
20
20
/// to a group of scenes (<paramref name="targetScenes"/>), with an optional intermediate loading scene (<paramref name="intermediateSceneInfo"/>).
21
21
/// If the <paramref name="intermediateSceneInfo"/> is not set, the transition will have no intermediate loading scene and will instead simply load the target scene directly.
@@ -39,7 +39,7 @@ public interface ISceneLoader : IDisposable
/// Triggers a transition to the target scene from the active scene.
43
43
/// It will transition from the current active scene (<see cref="ISceneManager.GetActiveScene()"/>)
44
44
/// to the target scene (<paramref name="targetSceneInfo"/>), with an optional intermediate loading scene (<paramref name="intermediateSceneInfo"/>).
45
45
/// If the <paramref name="intermediateSceneInfo"/> is not set, the transition will have no intermediate loading scene and will instead simply load the target scene directly.
@@ -59,6 +59,105 @@ public interface ISceneLoader : IDisposable
/// Triggers a transition to a group of scenes from another group of scenes.
64
+
/// It will transition from the provided group of scenes (<paramref name="fromScenes"/>)
65
+
/// to a group of scenes (<paramref name="targetScenes"/>), with an optional intermediate loading scene (<paramref name="intermediateSceneInfo"/>).
66
+
/// If the <paramref name="intermediateSceneInfo"/> is not set, the transition will have no intermediate loading scene and will instead simply load the target scene directly.
67
+
/// The complete transition flow is:
68
+
/// <br/><br/>
69
+
/// 1. Load the intermediate scene (if provided).<br/>
70
+
/// 2. Unload all provided scenes.<br/>
71
+
/// 3. Load all target scenes.<br/>
72
+
/// 4. Unload the intermediate scene (if provided).<br/>
73
+
/// </summary>
74
+
/// <param name="targetScenes">
75
+
/// A reference to all scenes that will be transitioned to.
76
+
/// </param>
77
+
/// <param name="fromScenes">
78
+
/// A reference to all scenes that will be unloaded in the transition.
79
+
/// </param>
80
+
/// <param name="setIndexActive">
81
+
/// Index of the scene in the <paramref name="targetScenes"/> to be set as the active scene.
82
+
/// </param>
83
+
/// <param name="intermediateSceneInfo">
84
+
/// A reference to the scene that's going to be loaded as the transition intermediate (as a loading scene).
85
+
/// If null, the transition will not have an intermediate loading scene.
/// Triggers a transition to the target scene from a group of scens.
91
+
/// It will transition from the provided group of scenes (<paramref name="fromScenes"/>)
92
+
/// to the target scene (<paramref name="targetSceneInfo"/>), with an optional intermediate loading scene (<paramref name="intermediateSceneInfo"/>).
93
+
/// If the <paramref name="intermediateSceneInfo"/> is not set, the transition will have no intermediate loading scene and will instead simply load the target scene directly.
94
+
/// The complete transition flow is:
95
+
/// <br/><br/>
96
+
/// 1. Load the intermediate scene (if provided).<br/>
97
+
/// 2. Unload all provided scenes.<br/>
98
+
/// 3. Load the target scene.<br/>
99
+
/// 4. Unload the intermediate scene (if provided).<br/>
100
+
/// </summary>
101
+
/// <param name="targetSceneInfo">
102
+
/// A reference to the scene that's going to be transitioned to.
103
+
/// </param>
104
+
/// <param name="fromScenes">
105
+
/// A reference to all scenes that will be unloaded in the transition.
106
+
/// </param>
107
+
/// <param name="intermediateSceneInfo">
108
+
/// A reference to the scene that's going to be loaded as the transition intermediate (as a loading scene).
109
+
/// If null, the transition will not have an intermediate loading scene.
/// Triggers a transition to a group of scenes from all loaded scenes.
115
+
/// It will transition from all loaded scenes
116
+
/// to a group of scenes (<paramref name="targetScenes"/>), with an optional intermediate loading scene (<paramref name="intermediateSceneInfo"/>).
117
+
/// If the <paramref name="intermediateSceneInfo"/> is not set, the transition will have no intermediate loading scene and will instead simply load the target scene directly.
118
+
/// The complete transition flow is:
119
+
/// <br/><br/>
120
+
/// 1. Load the intermediate scene (if provided).<br/>
121
+
/// 2. Unload all loaded scenes.<br/>
122
+
/// 3. Load all target scenes.<br/>
123
+
/// 4. Unload the intermediate scene (if provided).<br/>
124
+
/// </summary>
125
+
/// <param name="targetScenes">
126
+
/// A reference to all scenes that will be transitioned to.
127
+
/// </param>
128
+
/// <param name="setIndexActive">
129
+
/// Index of the scene in the <paramref name="targetScenes"/> to be set as the active scene.
130
+
/// </param>
131
+
/// <param name="intermediateSceneInfo">
132
+
/// A reference to the scene that's going to be loaded as the transition intermediate (as a loading scene).
133
+
/// If null, the transition will not have an intermediate loading scene.
/// Triggers a transition to the target scene from all loaded scenes.
139
+
/// It will transition from the provided group of scenes (<paramref name="fromScenes"/>)
140
+
/// to the target scene (<paramref name="targetSceneInfo"/>), with an optional intermediate loading scene (<paramref name="intermediateSceneInfo"/>).
141
+
/// If the <paramref name="intermediateSceneInfo"/> is not set, the transition will have no intermediate loading scene and will instead simply load the target scene directly.
142
+
/// The complete transition flow is:
143
+
/// <br/><br/>
144
+
/// 1. Load the intermediate scene (if provided).<br/>
145
+
/// 2. Unload all provided scenes.<br/>
146
+
/// 3. Load the target scene.<br/>
147
+
/// 4. Unload the intermediate scene (if provided).<br/>
148
+
/// </summary>
149
+
/// <param name="targetSceneInfo">
150
+
/// A reference to the scene that's going to be transitioned to.
151
+
/// </param>
152
+
/// <param name="fromScenes">
153
+
/// A reference to all scenes that will be unloaded in the transition.
154
+
/// </param>
155
+
/// <param name="intermediateSceneInfo">
156
+
/// A reference to the scene that's going to be loaded as the transition intermediate (as a loading scene).
157
+
/// If null, the transition will not have an intermediate loading scene.
0 commit comments