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
Copy file name to clipboardExpand all lines: Packages/mygamedevtools-scene-loader/Runtime/Interfaces/ISceneLoader.cs
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ public interface ISceneLoader
24
24
/// It will transition from the current active scene (<see cref="ISceneManager.GetActiveScene()"/>)
25
25
/// to the target scene (<paramref name="targetSceneInfo"/>), with an optional intermediate loading scene (<paramref name="intermediateSceneInfo"/>).
26
26
/// 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.
27
+
/// Also, you can provide a scene that wasn't loaded from this scene loader to transition from, as the <paramref name="externalOriginScene"/>,
28
+
/// instead of transitioning from the current active scene.
27
29
/// The complete transition flow is:
28
30
/// <br/><br/>
29
31
/// 1. Load the intermediate scene (if provided).<br/>
@@ -38,6 +40,9 @@ public interface ISceneLoader
38
40
/// A reference to the scene that's going to be loaded as the transition intermediate (as a loading scene).
39
41
/// If null, the transition will not have an intermediate loading scene.
40
42
/// </param>
43
+
/// <param name="externalOriginScene">
44
+
/// A reference to a scene loaded outside of this scene loader, instead of taking the current active scene as the origin scene.
/// Reference to the scene that's going to be loaded.
57
62
/// </param>
58
-
/// <param name="setActive">Should the loaded scene be marked as active? Equivalent to calling <see cref="ISceneManager.SetActiveScene(UnityEngine.SceneManagement.Scene)"/>.</param>
63
+
/// <param name="setActive">Should the loaded scene be marked as active? Equivalent to calling <see cref="ISceneManager.SetActiveScene(Scene)"/>.</param>
0 commit comments