Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Saving players data on Steam multiplayer game

Discussion in 'Multiplayer' started by casteillet, Nov 13, 2023.

  1. casteillet

    casteillet

    Joined:
    Jun 29, 2019
    Posts:
    11
    Hi,

    After searching around youtube and on the forum, I have two options in my mind to save players data :

    - The first one would be to save data periodically (like an auto-save every 5 min on server-side), when the host is leaving the scene, and if possible when the host crash but I don't know if the OnApplicationQuit() is able to handle this type of task in background ? Then the Steam Cloud will save the local file on the host computer which contain all players data by world created.

    - The second one is during the gameplay, the session send data to a database, but I'm affraid this would be an expensive solution (cost and performance).

    What's guys your opinion about that ?