Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Player reconnects to the game, player does not spawn at the last location.

$
0
0
When the connection is lost, the player is destroyed from the game scene.
I don't want the player to destroy when the connection is lost and when the player reconnects to the game, player does not spawn at the last location.
giphy.gif



PhotonNetwork.ReconnectAndRejoin();
I am reconnecting to the game with this code.

options.CleanupCacheOnLeave = false;
options.PlayerTtl = 50000;
options.EmptyRoomTtl = 50000;
some of the settings of the room

Viewing all articles
Browse latest Browse all 1557

Trending Articles