We will use Application.persistentDataPath , which is a safe directory on any device (PC, Mac, Mobile) where Unity allows file storage.
[Serializable] public class GameData
The Ultimate Guide to Unity Save Editing: Customizing Your Game Experience unity save edit
: For data related to custom editor tools rather than the game itself, use EditorPrefs , which stores key-value pairs on the disk. 2. Identifying and Editing Formats How you edit the file depends on its structure: We will use Application