Skip to main content
added 82 characters in body
Source Link
Seb B.
  • 121
  • 4

It's faster to debug in the Editor, so this made my life simple:

#if UNITY_EDITOR
rootFolder = Application.dataPath+"/RootFolder/";
#elif UNITY_ANDROID || UNITY_IOS
rootFolder = Application.persistentDataPath;
#endif

And from the rootFolder, you build your file system structure (cross-plateform).

It's faster to debug in the Editor, so this made my life simple:

#if UNITY_EDITOR
rootFolder = Application.dataPath+"/RootFolder/";
#elif UNITY_ANDROID || UNITY_IOS
rootFolder = Application.persistentDataPath;
#endif

It's faster to debug in the Editor, so this made my life simple:

#if UNITY_EDITOR
rootFolder = Application.dataPath+"/RootFolder/";
#elif UNITY_ANDROID || UNITY_IOS
rootFolder = Application.persistentDataPath;
#endif

And from the rootFolder, you build your file system structure (cross-plateform).

Source Link
Seb B.
  • 121
  • 4

It's faster to debug in the Editor, so this made my life simple:

#if UNITY_EDITOR
rootFolder = Application.dataPath+"/RootFolder/";
#elif UNITY_ANDROID || UNITY_IOS
rootFolder = Application.persistentDataPath;
#endif