Search Unity

Question User save file location: Documents or Application.persistentDataPath?

Discussion in 'Scripting' started by spraycanmansam, Oct 23, 2020.

  1. spraycanmansam

    spraycanmansam

    Joined:
    Nov 22, 2012
    Posts:
    254
    Hi everyone,

    I have a quick question about the best place to read and write user files for our game:
    We're currently using 'Environment.SpecialFolder.MyDocuments' but I have recently seen a post from a unity forum member that Application.persistentDataPath is better (can't find the post right now..)

    Can anyone confirm this or recommend the best location to ensure no read/write issues for the user?

    Thanks!
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    spraycanmansam likes this.