File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1399,7 +1399,8 @@ public bool StartServer()
13991399 ShutdownInternal ( ) ;
14001400 return false ;
14011401 }
1402- NetCodeConfig . Global . HostWorldModeSelection = NetCodeConfig . HostWorldMode . SingleWorld ;
1402+
1403+ DefaultWorldInitialization . Initialize ( "Default World" , false ) ;
14031404 StartCoroutine ( WaitForHybridPrefabRegistration ( StartType . Server ) ) ;
14041405 return true ;
14051406 }
@@ -1473,7 +1474,7 @@ public bool StartClient()
14731474 ShutdownInternal ( ) ;
14741475 return false ;
14751476 }
1476-
1477+ DefaultWorldInitialization . Initialize ( "Default World" , false ) ;
14771478 StartCoroutine ( WaitForHybridPrefabRegistration ( StartType . Client ) ) ;
14781479 // TODO-UNIFIED: Need a way to signal everything completed.
14791480 return true ;
@@ -1547,6 +1548,7 @@ public bool StartHost()
15471548 ShutdownInternal ( ) ;
15481549 return false ;
15491550 }
1551+ DefaultWorldInitialization . Initialize ( "Default World" , false ) ;
15501552 StartCoroutine ( WaitForHybridPrefabRegistration ( StartType . Host ) ) ;
15511553 // TODO-UNIFIED: Need a way to signal everything completed.
15521554 return true ;
You can’t perform that action at this time.
0 commit comments