Пример #1
0
 private void HiddenConstruct(object injector)
 {
     Task.Run(() =>
     {
         InitDependInfo();
         AppDependInfo.InitVisualSupport();
         VisualDependInfo = AppDependInfo;
     });
 }
Пример #2
0
        public static ProjectBundleDependInfo Create(string manifestPath)
        {
            var bundle        = AssetBundle.LoadFromFile(manifestPath);
            var manifest      = bundle.LoadAsset <AssetBundleManifest>("AssetBundleManifest");
            var appDependInfo = new ProjectBundleDependInfo();
            var allBundleIds  = manifest.GetAllAssetBundles();

            foreach (var bundleId in allBundleIds)
            {
                var directDepends = manifest.GetDirectDependencies(bundleId);
                var dependInfo    = new BundleDependInfo(bundleId, directDepends);
                appDependInfo.AllDependInfos.Add(bundleId, dependInfo);
            }

            bundle.Unload(true);
            return(appDependInfo);
        }
Пример #3
0
 public void SetBundleDependInfo(byte[] bytes)
 {
     _appDependInfo = SerializeUtility.DeSerialize <ProjectBundleDependInfo>(bytes);
 }
Пример #4
0
        private void InitDependInfo()
        {
            var path = _pathHelper.GetAppBundleDependInfoPath();

            _appDependInfo = SerializeUtility.DeSerialize <ProjectBundleDependInfo>(path);
        }