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/ISceneManager.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ public interface ISceneManager : IDisposable
53
53
/// <param name="sceneInfos">References to all scenes to load.</param>
54
54
/// <param name="setIndexActive">Index of the desired scene to set active, based on the <paramref name="sceneInfos"/> array.</param>
55
55
/// <param name="progress">Object to report the loading operations progress to, from 0 to 1.</param>
56
+
/// <param name="token">Optional token to manually cancel the operation. Note that Unity Scene Manager operations cannot be manually canceled and will continue to run.</param>
56
57
/// <returns>A <see cref="System.Threading.Tasks.ValueTask{TResult}"/> with all scenes loaded.</returns>
57
58
/// <exception cref="ArgumentException">When scene info group is null, empty or the setIndexName is bigger than the scene length.</exception>
58
59
/// <exception cref="InvalidOperationException">When the provided scene info group fails to produce valid load scene operations.</exception>
@@ -65,6 +66,7 @@ public interface ISceneManager : IDisposable
65
66
/// <param name="sceneInfo">A reference to the scene that's going to be loaded.</param>
66
67
/// <param name="setActive">Should the loaded scene be enabled as the active scene?</param>
67
68
/// <param name="progress">Object to report the loading operation progress to, from 0 to 1.</param>
69
+
/// <param name="token">Optional token to manually cancel the operation. Note that Unity Scene Manager operations cannot be manually canceled and will continue to run.</param>
68
70
/// <returns>A <see cref="System.Threading.Tasks.ValueTask{TResult}"/> with the loaded scene as the result.</returns>
69
71
/// <exception cref="ArgumentException">When scene info is null.</exception>
70
72
/// <exception cref="InvalidOperationException">When the provided scene info fails to produce a valid load scene operation.</exception>
@@ -74,6 +76,7 @@ public interface ISceneManager : IDisposable
74
76
/// Unloads all scenes provided by the <paramref name="sceneInfos"/> array in parallel.
75
77
/// </summary>
76
78
/// <param name="sceneInfos">Reference to all scenes to unload.</param>
79
+
/// <param name="token">Optional token to manually cancel the operation. Note that Unity Scene Manager operations cannot be manually canceled and will continue to run.</param>
77
80
/// <returns>
78
81
/// A <see cref="System.Threading.Tasks.ValueTask{TResult}"/> with all the unloaded scenes.
79
82
/// <br/>
@@ -87,6 +90,7 @@ public interface ISceneManager : IDisposable
87
90
/// Unloads a scene referenced by the <paramref name="sceneInfo"/>.
88
91
/// </summary>
89
92
/// <param name="sceneInfo">A reference to the scene that's going to be unloaded.</param>
93
+
/// <param name="token">Optional token to manually cancel the operation. Note that Unity Scene Manager operations cannot be manually canceled and will continue to run.</param>
90
94
/// <returns>
91
95
/// A <see cref="System.Threading.Tasks.ValueTask{TResult}"/> with the unloaded scene as the result.
0 commit comments