public static string LocalBundleURI(string package) { string path = AssetPath.LocalBundlePath(package); path = XCSharp.FileURI(path); if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer) { path = path.Replace("file://", "file:///"); } return(path); }
public static string StreamBundleURI(string package) { string path = AssetPath.StreamBundlePath(package); if (Application.platform != RuntimePlatform.Android) { path = XCSharp.FileURI(path); if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer) { path = path.Replace("file://", "file:///"); } } else { path = XCSharp.JarFileURI(path); } return(path); }