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
/// Event that reports the scene load progression in percentage.
20
+
/// </summary>
21
+
publiceventSceneLoadProgressDelegateOnProgress;
22
+
/// <summary>
23
+
/// Event that reports when the loading has been completed.
24
+
/// </summary>
25
+
publiceventActionOnLoadingComplete;
26
+
27
+
/// <summary>
28
+
/// Controls if the loading screen is in an active state, in other words, if it's currently in focus.
29
+
/// This is required for the <see cref="ISceneLoader.TransitionToScene(ILoadSceneInfo, ILoadSceneInfo)"/> to know when it should perform its internal operations.
30
+
/// Before the loading screen can be actually seen, <see cref="Active"/> should be set to false.
31
+
/// For example, if the loading screen is being faded in, or if an animation is transitioning to it.
32
+
/// Then, once it's completely visible, <see cref="Active"/> should be set to true. The loading process starts.
33
+
/// Once the target scene has finished loading, then the loading screen gets faded out or transitions out.
34
+
/// After the transition has been completed and the loading screen is no longer visible, <see cref="Active"/>
35
+
/// should be set to false again.
36
+
/// </summary>
37
+
publicboolActive{get;protectedset;}
38
+
39
+
[SerializeField,Tooltip("Common scene operations stop at 90%, but addressable scene operations go all the way up to 100%. Enabling this value reduces the ratio to 90% instead of 100%")]
40
+
protectedbool_reduceLoadRatio;
41
+
42
+
/// <summary>
43
+
/// Default ratio to consider when displaying the loading progress bar.
44
+
/// The <see cref="UnityEngine.SceneManagement.SceneManager"/> operations stop at 90%, so you might want to set that to 0.9f.
45
+
/// The addressable scene operations go all the way up to 100%.
0 commit comments