Despawn orphan players in Fusion shared mode
I am developing a large scale metaverse like platform, therefore I am using shared mode.
My question is, how to correctly despawn disconnected players in shared more? OnPlayerLeft is not supported.
When a player disconnects and rejoins, it ends up with two instances:
- one fresh spawned
- one automatically spawned by the Networkrunner (during simulation) with state authority: None.
Any help how to handle the player lifecycle correctly in shared mode is appreciated.
0
Answers
-
I found the answer myself. I missed to check this option in the network object: "Destroy when state authority leaves"
0