diff --git a/Assets/00.StaryEvo/Editor/BuildAsset/CreatDomainDirectory.cs b/Assets/00.StaryEvo/Editor/BuildAsset/CreatDomainDirectory.cs index 8882acb..51ea5a5 100644 --- a/Assets/00.StaryEvo/Editor/BuildAsset/CreatDomainDirectory.cs +++ b/Assets/00.StaryEvo/Editor/BuildAsset/CreatDomainDirectory.cs @@ -12,7 +12,7 @@ namespace Stary.Evo if (PlayerPrefs.GetInt("CreatDomainDirectory") == 0) { PlayerPrefs.SetInt("CreatDomainDirectory", 1); - bool isOk = EditorUtility.DisplayDialog("提示", "是否检索并创建缺失目录", "是", "否"); + bool isOk = EditorUtility.DisplayDialog("提示", "发现目录存在缺失,是否检索并创建缺失目录", "是", "否"); if (isOk) { var DomainAll = CreatAssetWindow.GetCreatDomainAll(); diff --git a/Assets/00.StaryEvo/Editor/MarkAdressable/MarkAdressable.cs b/Assets/00.StaryEvo/Editor/MarkAdressable/MarkAdressable.cs index 004ffac..99cb3ae 100644 --- a/Assets/00.StaryEvo/Editor/MarkAdressable/MarkAdressable.cs +++ b/Assets/00.StaryEvo/Editor/MarkAdressable/MarkAdressable.cs @@ -25,11 +25,11 @@ namespace Stary.Evo.Editor get { return Application.dataPath + "/Domain"; } } - // public static string AtlasRemotedRoot - // { - // get { return Application.dataPath + "/AddressableRes/Sprites"; } - // } - // + public static string MainDomainRoot + { + get { return Application.dataPath + "/Main"; } + } + // public static string SpriteRemotedAtlas // { // get { return Application.dataPath + "/AddressableRes/SpriteAtlas"; } @@ -154,10 +154,14 @@ namespace Stary.Evo.Editor HotfixMainResDomain hotfixMainResDomain = AssetDatabase.LoadAssetAtPath(configPath); packageName = hotfixMainResDomain.hotfixMainResDomainEntity.domain; Mark(); + if(!BuildAssetWindow.GetBuildPackageName().Equals("Main")) CreateRes(packageName, $"{DomainRoot}/{BuildAssetWindow.GetBuildPackageName()}/AddressableRes", $"{DomainRoot}/{BuildAssetWindow.GetBuildPackageName()}/HotUpdate"); - + else + CreateRes(packageName, + $"{DomainRoot}/{BuildAssetWindow.GetBuildPackageName()}/AddressableRes", + $"{MainDomainRoot}/Script/Runtime/HotUpdate"); EditorUtility.DisplayDialog("自动标记", "自动标记成功", "确定"); } diff --git a/Assets/00.StaryEvo/package.json b/Assets/00.StaryEvo/package.json index eaf9ff0..ee37002 100644 --- a/Assets/00.StaryEvo/package.json +++ b/Assets/00.StaryEvo/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.main", - "version": "1.0.14", + "version": "1.0.15", "displayName": "00.StaryEvo", "description": "This is an Framework package", "unity": "2021.3",