Code: Select all
UnauthorizedAccessException: Access to the path "/private/var/folders/sn/p7zy4k013sddkp0sdbttp1j40000gn/T/AppTranslocation/ED19FB83-0355-4F3A-81B1-531EAE35CCCD/d/Block42.app/Contents/Resources/Data/StreamingAssets/MyGame/Category/" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at ES3Internal.ES3FileStream.GetPath (System.String path, ES3Internal.ES3FileMode fileMode) [0x00000] in <00000000000000000000000000000000>:0
at ES3Internal.ES3FileStream..ctor (System.String path, ES3Internal.ES3FileMode fileMode, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <00000000000000000000000000000000>:0
at ES3Internal.ES3Stream.CreateStream (ES3Settings settings, ES3Internal.ES3FileMode fileMode) [0x00000] in <00000000000000000000000000000000>:0
at ES3.LoadRawBytes (ES3Settings settings) [0x00000] in <00000000000000000000000000000000>:0
at ES3.LoadRawString (ES3Settings settings) [0x00000] in <00000000000000000000000000000000>:0
at Block42.ModelEditor.ModelEditorModellingManager.LoadDataFromFile (Block42.Block42ModelBundle modelBundle) [0x00000] in <00000000000000000000000000000000>:0
at Block42.ModelEditor.ModelEditorModellingManager+<LoadModelCoroutine>d__68.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
(Filename: currently not available on il2cpp Line: -1)
Code: Select all
if(directoryPath != UnityEngine.Application.persistentDataPath)
ES3IO.CreateDirectory(directoryPath);
Code: Select all
if(fileMode != ES3FileMode.Read && directoryPath != UnityEngine.Application.persistentDataPath)
ES3IO.CreateDirectory(directoryPath);
Using:
Unity 2018.4.15f
macOS 10.15.2 Catalina