Despawn orphan players in Fusion shared mode

Options
Christian_Moser
edited February 2023 in Fusion

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.

Answers

  • I found the answer myself. I missed to check this option in the network object: "Destroy when state authority leaves"