How to read a file from the game's install directory
I'm creating a test version of the game that is meant to be shared between me and the other guy who is working on this project. The base idea is that the "game" would read relevant data from a file we can edit and send back and forth. Now, creating the file is not an issue, I've done it with Json. The issue/doubt is where do I put it? PersistentDataPath is an option, but honestly somewhat cumbersome. Ideally I could create a subfolder in the same folder the "game" is installed and read from it. The trouble is, I don't seem to find a way to do it. Also, how does that work with the actual building process? Do I have to create the folder manually after that?
Also, another issue is that I'm on Windows, and my firend is on Mac. I honestly have no idea how the folders are structured on a Mac, the build outputs a single file.
Help, please? If no one has had this issue before, do you know any article/resource that could point me in the right direction? I googled for it for a whole day, but could not find any clear answer.
Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613032647im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Project Asset Folders Don't Show Objects Until I Click the Folder 1 Answer
Script-Folder gone because i hit the usb stick where the project is stored 1 Answer
Getting Folder list from AWS S3 0 Answers
Can I Unsync iCloud Without Losing Reference to Assets and Folders 0 Answers
Why is my assets folder not coming with the standart folder together? 1 Answer