immersivecognition / unity-experiment-framework

UXF - Framework for creating human behaviour experiments in Unity
https://immersivecognition.github.io/unity-experiment-framework/
MIT License
214 stars 41 forks source link

File Saver Data Handling on Mac #122

Open matthewcook-ku opened 2 years ago

matthewcook-ku commented 2 years ago

I would really like to get file saver data handling working on mac. I spent some time trying to walk through the existing file code and see where things trip up. I was hoping that someone might know where the incompatibility lies so I would know where to focus my efforts.

I can see that checking the file path in TryBeginSessionFromUI of UIController fails for some reason (line 256), even through the path is valid, and making the same call to Directory.Exists(localFilePath) works fine from other scripts. I can comment these lines out to get past the initial UI screen, but after this still no data is written.

jackbrookes commented 2 years ago

Hi, this is tricky, I don't have a Mac to test this on. One thing, perhaps you can find the File Saver component (Under Data Handling) and make sure "Verbose Debug" option is enabled in the inspector. Then, all messages will be displayed in the console. Would be good to see if there's anything odd here.