- Home /
Using EditorUtility.OpenFilePanel outside editor?
I am using EditorUtility.OpenFilePanel to open a save file for my game and then load it. But I have a issue using it outside the editor because it is obviously a editor only call. I really need this as this is the way I wish for my players to share save files and load them into their game. How would I use this or something similar to get the same functionality?
Answer by FortisVenaliter · May 11, 2017 at 03:48 PM
You need to add your own code in to manage the save files. Games use isolated storage for security and cross-platform reasons. That's why games have their own save menus rather than using standard Windows file dialogs.
What you want to do is use the System.IO namespace to read/write to files in the Application.persistentDataPath directory.
Well I would rather not force the player to use persistentDataPath, and the reason why I ask about using the windows standard one is because a game I play called robocraft uses a recolored version of the windows standard to select a picture for your profile. And the only use of the selection is to read the file and save it as the players own in persistent data.
Your answer
![](https://koobas.hobune.stream/wayback/20220612121746im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Sharing Violation On Path 1 Answer
Saving and Loading XML in Standalone 1 Answer
List Contains false after playmode 0 Answers
How do I create/load/save Highscores? 1 Answer
Saving world info 3 Answers