I have implemented a JSON structure that stores game related data.
This JSON file is stored in the Resources folder and I read it via TextAsset in this manner:
TextAsset jsonText = (TextAsset)Resources.Load(jsonFileName, typeof(TextAsset));
Now, during the lifetime of the game, this JSON structure may need to be modified and in that case would need to be stored on disk to ensure game play progress is not hampered.
On a device, how would I get the proper path of this TextAsset without using UnityEditor.AssetDatabase.GetAssetPath(jsonText) and then write this TextAsset back to disk?
PS: This needs to work on a device.