예제 #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);
        }