//create comic data by loading comic folder inside a asset bundle public Comic(string bundleName, string comicPath) { this.name = Path.GetFileName(comicPath); this.source = bundleName.ToString(); AssetBundle comicBundle = ComicManager.readStreamBundles(ComicManager.bundlePath(bundleName)); foreach (string asetname in comicBundle.GetAllAssetNames()) { if (asetname.Contains(comicPath)) { this.pages.Add(comicBundle.LoadAsset <Sprite>(asetname)); this.pagename.Add(Path.GetFileNameWithoutExtension(asetname)); } } comicBundle.Unload(false); }