private void HiddenConstruct(object injector) { Task.Run(() => { InitDependInfo(); AppDependInfo.InitVisualSupport(); VisualDependInfo = AppDependInfo; }); }
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); }
public void SetBundleDependInfo(byte[] bytes) { _appDependInfo = SerializeUtility.DeSerialize <ProjectBundleDependInfo>(bytes); }
private void InitDependInfo() { var path = _pathHelper.GetAppBundleDependInfoPath(); _appDependInfo = SerializeUtility.DeSerialize <ProjectBundleDependInfo>(path); }