public void UpdateAssetBundleMainfestInfo(string mainfestParentPath, string abMainfestPath) { //TODO this.mainfestParentPath = PathTool.FixedPath(mainfestParentPath + "/"); AssetBundle ab = AssetBundle.LoadFromFile(abMainfestPath); abMainfest = ab.LoadAsset("assetbundlemanifest") as AssetBundleManifest; ab.Unload(false); }
public static void FixedBundleFilePath(ref string bundlePath) { if (!bundlePath.EndsWith(".ab")) { bundlePath += bundlePath + ".ab"; } bundlePath = PathTool.FixedPath(bundlePath); bundlePath = bundlePath.ToLower(); }