Skip to content

Commit

Permalink
using RpcTargetUse Temp since clientId may change frequently
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando-cortez committed Mar 22, 2024
1 parent 7636cf0 commit dc67e75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void OnSceneEvent(SceneEvent sceneEvent)
if (NetworkManager.IsServer)
{
// Send client RPC to make sure the client stops the loading screen after the server handles what it needs to after the client finished synchronizing, for example character spawning done server side should still be hidden by loading screen.
ClientStopLoadingScreenRpc(RpcTarget.Group(new[] { sceneEvent.ClientId }, RpcTargetUse.Persistent));
ClientStopLoadingScreenRpc(RpcTarget.Group(new[] { sceneEvent.ClientId }, RpcTargetUse.Temp));
}
break;
}
Expand Down

0 comments on commit dc67e75

Please sign in to comment.