Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question SteamDeck save file locations

Discussion in 'Linux' started by Glathir, Nov 17, 2023.

  1. Glathir

    Glathir

    Joined:
    Oct 8, 2017
    Posts:
    27
    Hello Unity Team,

    I would like to ask about Application.persistentdatapath on SteamDeck.
    We have a problem with our game on steam deck as it doesn't save the game settings/config file (which is stored at the default Application.persistentdatapath) so every time we restart the game the settings are reset. It's weird because the game save files are stored and loaded in the game as it should and the config file is saved at the same location as the save files. We tried this either with cloud saving turned on and off in the steam account.

    My question is: What is the default Application.persistentdatapath on SteamDeck/Linux? Should this path be given as path for save files in the steam developer platform at game set up? Or shoudl it be something different and that different path should be referred in the code?

    Thank you very much for your help!

    We are using Unity 2021.3.16
     
  2. ChiwTheNeko

    ChiwTheNeko

    Joined:
    Mar 24, 2022
    Posts:
    144
    I don't remember exactly where Application.persistentdatapath points to but I can confirm this is the right place to store save and config files. This is what I used it for in my game and it works fine on Linux and Steam Deck.