public void SetDataPath(string dataPath) { mAssetBundleHelper.SetDataPath(dataPath); byte[] bytes = File.ReadAllBytes($"{mAssetBundleHelper.dataPath}AssetManifest"); mAssetManifest = AssetManifest.Import(bytes); //获取Platform string platform = "Windows"; mAssetBundleHelper.LoadMainfest(platform); }
public static IEnumerator Initialize() { yield return(AssetBundleManager.LoadAssetBundle(AssetManifest.BundleName)); var ab = AssetBundleManager.GetLoadedAssetBundle(AssetManifest.BundleName); if (ab != null) { manifest = ab.LoadAsset <AssetManifest>(AssetManifest.AssetName); } yield return(null); }