File tree 3 files changed +39
-4
lines changed
Packages/com.unity.multiplayer.samples.coop
Utilities/SceneManagement
3 files changed +39
-4
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,7 @@ GameObject:
462
462
- component : {fileID: 5535057700358825828}
463
463
- component : {fileID: 5841466599347033389}
464
464
- component : {fileID: 3127630062634103998}
465
+ - component : {fileID: 2516136186326398479}
465
466
m_Layer : 5
466
467
m_Name : LoadingScreen
467
468
m_TagString : Untagged
@@ -543,7 +544,7 @@ CanvasGroup:
543
544
m_PrefabAsset : {fileID: 0}
544
545
m_GameObject : {fileID: 948382310089859896}
545
546
m_Enabled : 1
546
- m_Alpha : 1
547
+ m_Alpha : 0
547
548
m_Interactable : 0
548
549
m_BlocksRaycasts : 0
549
550
m_IgnoreParentGroups : 0
@@ -582,6 +583,23 @@ MonoBehaviour:
582
583
- {fileID: 6817560313460574097}
583
584
m_LoadingProgressManager : {fileID: 0}
584
585
m_PersistentPlayerRuntimeCollection : {fileID: 11400000, guid: 23c3465e22da67c4e812c4faf3adb1cb, type: 2}
586
+ --- !u!114 &2516136186326398479
587
+ MonoBehaviour :
588
+ m_ObjectHideFlags : 0
589
+ m_CorrespondingSourceObject : {fileID: 0}
590
+ m_PrefabInstance : {fileID: 0}
591
+ m_PrefabAsset : {fileID: 0}
592
+ m_GameObject : {fileID: 948382310089859896}
593
+ m_Enabled : 1
594
+ m_EditorHideFlags : 0
595
+ m_Script : {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
596
+ m_Name :
597
+ m_EditorClassIdentifier :
598
+ m_IgnoreReversedGraphics : 1
599
+ m_BlockingObjects : 0
600
+ m_BlockingMask :
601
+ serializedVersion : 2
602
+ m_Bits : 4294967295
585
603
--- !u!1 &1057458229063515816
586
604
GameObject :
587
605
m_ObjectHideFlags : 0
Original file line number Diff line number Diff line change 1
1
# Multiplayer Samples Co-op Changelog
2
2
3
+ ## [ Unreleased] - yyyy-mm-dd
4
+
5
+ ### Added
6
+ * ClientLoadingScreen now sets raycast blocking to true when the loading screen is visible (#760 )
7
+ ### Changed
8
+ *
9
+ ### Removed
10
+ *
11
+ ### Fixed
12
+ *
13
+
3
14
## [ 1.4.0] - 2022-10-06
4
15
5
16
### Added
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ void Awake()
71
71
72
72
void Start ( )
73
73
{
74
- m_CanvasGroup . alpha = 0 ;
74
+ SetCanvasVisibility ( false ) ;
75
75
m_LoadingProgressManager . onTrackersUpdated += OnProgressTrackersUpdated ;
76
76
}
77
77
@@ -130,7 +130,7 @@ public void StopLoadingScreen()
130
130
131
131
public void StartLoadingScreen ( string sceneName )
132
132
{
133
- m_CanvasGroup . alpha = 1 ;
133
+ SetCanvasVisibility ( true ) ;
134
134
m_LoadingScreenRunning = true ;
135
135
UpdateLoadingScreen ( sceneName ) ;
136
136
ReinitializeProgressBars ( ) ;
@@ -220,6 +220,12 @@ public void UpdateLoadingScreen(string sceneName)
220
220
}
221
221
}
222
222
223
+ void SetCanvasVisibility ( bool visible )
224
+ {
225
+ m_CanvasGroup . alpha = visible ? 1 : 0 ;
226
+ m_CanvasGroup . blocksRaycasts = visible ;
227
+ }
228
+
223
229
IEnumerator FadeOutCoroutine ( )
224
230
{
225
231
yield return new WaitForSeconds ( m_DelayBeforeFadeOut ) ;
@@ -233,7 +239,7 @@ IEnumerator FadeOutCoroutine()
233
239
currentTime += Time . deltaTime ;
234
240
}
235
241
236
- m_CanvasGroup . alpha = 0 ;
242
+ SetCanvasVisibility ( false ) ;
237
243
}
238
244
}
239
245
}
You can’t perform that action at this time.
0 commit comments