public static FileManifest ReadFileManifest(string path) { string fullpath; var loc = PathRouter.GetFullPath(path, false, out fullpath); if (loc == PathLocation.NotFound) { throw new FileNotFoundException("ReadFileManifest", path); } string json = FileLoader.LoadString(path); var manifest = JsonUtility.FromJson <FileManifest>(json); manifest.BuildQuery(); return(manifest); }
public override async Task Test() { foreach (string ab in AssetBundleLoader.Manifest.GetAllAssetBundles()) { string relpath = PathRouter.ABFolder + '/' + ab; string fullpath; Assert(PathLocation.NotFound != PathRouter.GetFullPath(relpath, true, out fullpath)); urls.Add(fullpath); } ResLog.Log("ResourceSystem.Init"); await TestLoadOne(urls[0]); ResLog.Log("TestLoadOne finished"); await TestLoadMutiple(); ResLog.Log("TestLoadMutiple finished"); }