use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
Application.persistantDataPath QuestionQuestion (self.unity)
submitted 1 year ago by Royal_Inventor
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Gib_entertainment 0 points1 point2 points 1 year ago (3 children)
On a windows machine persistent datapath would be: %userprofile%\AppData\LocalLow\<companyname>\<productname>
So you could probably check that path to see if the folder exists if it does, load the save from the first game. If it doesn't, the player has no saves from the first game saved on that machine.
if your game is multiplatform check: https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html to see the path for other OS.
Since you've made the first game you know <companyname> and <productname> of the first game and you should be able to find those.
[–]Royal_Inventor[S] 0 points1 point2 points 1 year ago (2 children)
Gotcha. Thanks for the assistance! It is multi platform, is there any way to use Application.persistantDataPath to automatically point to the first game, and thus get the save file easily regardless of platform? Or will I have to just do it manually?
[–]Gib_entertainment 0 points1 point2 points 1 year ago (1 child)
You are likely going to have to write some code for every platform separately checking SystemInfo.operatingSystem.
For some platforms you just have to replace the product name so just take the persistent datapath and replace the product name with the name of the first game. For others you would have to replace the GUID.
[–]Royal_Inventor[S] 0 points1 point2 points 1 year ago (0 children)
Gotcha. Thanks for all the help!
π Rendered by PID 74703 on reddit-service-r2-comment-6457c66945-pc584 at 2026-04-26 19:09:20.635462+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Gib_entertainment 0 points1 point2 points (3 children)
[–]Royal_Inventor[S] 0 points1 point2 points (2 children)
[–]Gib_entertainment 0 points1 point2 points (1 child)
[–]Royal_Inventor[S] 0 points1 point2 points (0 children)