fix again

This commit is contained in:
2024-04-21 16:25:07 -04:00
parent 77a516fadc
commit b7e24f89db
+6 -1
View File
@@ -133,7 +133,12 @@ public class UnityFile
name = Pathing.ToPlatformAssetBundleName(name); name = Pathing.ToPlatformAssetBundleName(name);
} }
//string text = Pathing.appContentDataPath + localpath + name; //string text = Pathing.appContentDataPath + localpath + name;
string text = "file://localhost/" + HelperFunctions.CreateFilePath(("/" + localpath+ name)).TrimStart('/'); string text = HelperFunctions.CreateFilePath("/" + localpath + name);
if (Application.platform != RuntimePlatform.Android)
{
text = "file://localhost/" + text.TrimStart('/');
}
Debug.LogWarning("Loader: "+ text); Debug.LogWarning("Loader: "+ text);
return text; return text;
} }