I want to support initially Windows, Linux and MacOS. My game needs to save some files during each session. Even on Windows I can’t do that in Program Files. Typically programs save it in App Data or in user folder. I need an API call which returns some kind of work path which is good for storing files on each platform. I heard that .NET has something like that. I know about Application.dataPath but that’s not what I need, since it will most likely point to Program Files.
I found it: System.Environment.SpecialFolder is what I need. ![]()