mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
respawn objects after loading scene
This commit is contained in:
parent
563f61c915
commit
ea87561b52
@ -753,6 +753,10 @@ public virtual void ServerChangeScene(string newSceneName)
|
||||
|
||||
startPositionIndex = 0;
|
||||
startPositions.Clear();
|
||||
|
||||
// always need to respawn server objects after changing scene.
|
||||
// previously this was done in OnSceneLoaded.
|
||||
NetworkServer.SpawnObjects();
|
||||
}
|
||||
|
||||
internal void ClientChangeScene(string newSceneName, SceneOperation sceneOperation = SceneOperation.Normal, bool customHandling = false)
|
||||
|
Loading…
Reference in New Issue
Block a user