|
Kanda Foundation 0.2.0
|
Implements a fix for mismatching ghost prefabs in server/client when dynamically loading scenes. More...
Inheritance diagram for DynamicGhostLoadingClientSystem:Public Member Functions | |
| void | OnCreate (ref SystemState state) |
| void | OnUpdate (ref SystemState state) |
Implements a fix for mismatching ghost prefabs in server/client when dynamically loading scenes.
Based on a Unity Discussions topic where it is stated that, as long as scenes are not loaded in random order, by setting missing ghost prefabs as GhostCollectionPrefab.LoadingState.LoadingActive on the client, we signal to the GhostCollectionSystem that the client intends to load these later.
This way, we avoid NetCode forcibly disconnecting the client due to mismatching ghost prefabs.