public BundlePathInfoHelepr() { string path = null; projectConfig = ProjectInfoDati.GetActualInstance(); if (UnityModeUtility.IsEditorMode) { path = /*projectConfig.Helper.LocalHttpRootDir +*/ $"{projectConfig.DevelopProjectName}_AssetBundleInfo.bytes"; var bytes = File.ReadAllBytes(path); projectAssetToBundleMap = SerializeUtility.DeSerialize <ProjectAssetsToBundleMapInfo>(bytes); } }
public void SetBundleInfo(byte[] bytes) { try { var info = SerializeUtility.DeSerialize <ProjectAssetsToBundleMapInfo>(bytes); if (info != null) { projectAssetToBundleMap = info; } #if DEBUG if (projectAssetToBundleMap == null) { Debug.LogError("设置Bundle数据失败"); } #endif } catch (Exception e) { #if DEBUG Debug.LogError("设置Bundle数据失败:" + e.Message + e.StackTrace); #endif } }