This happens when I use C# 's fileInfo.FullName, it returns a path that using forward-slashes:
Code: Select all
string fileExtensionWildcardSelector = "*" + MODEL_DATA_FILE_EXTENSION;
FileInfo[] modelDataFileInfos = parentDirectory.GetFiles(fileExtensionWildcardSelector, SearchOption.AllDirectories);
if (modelDataFileInfos != null && modelDataFileInfos.Length > 0) {
Hashtable hashtable = (Hashtable)MiniJSON.jsonDecode(ES3.LoadRawString(modelDataFileInfos[0].FullName));
...
Code: Select all
#if UNITY_STANDALONE_WIN
path = path.Replace("\\", "/"); // Replace all backward slashes into forward slahes in Windows
#endif