Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }