上传框架,上传unitask
This commit is contained in:
@@ -19,10 +19,12 @@ namespace Stary.Evo.Editor
|
||||
private static string[] configNames = new[] { "DomainConfig" };
|
||||
|
||||
|
||||
|
||||
public static string DomainRoot
|
||||
{
|
||||
get { return Application.dataPath + "/Domain"; }
|
||||
}
|
||||
|
||||
// public static string AtlasRemotedRoot
|
||||
// {
|
||||
// get { return Application.dataPath + "/AddressableRes/Sprites"; }
|
||||
@@ -109,14 +111,43 @@ namespace Stary.Evo.Editor
|
||||
//[MenuItem("Evo/Hotfix/标记资源")]
|
||||
public static void AddMark()
|
||||
{
|
||||
// //清空主包旧数据
|
||||
AssetBundleCollectorPackage assetBundleCollectorPackage = null;
|
||||
// foreach (var package in AssetBundleCollectorSettingData.Setting.Packages)
|
||||
// {
|
||||
// if (package.PackageName == "Main")
|
||||
// {
|
||||
// assetBundleCollectorPackage = package;
|
||||
// }
|
||||
// }
|
||||
// if (assetBundleCollectorPackage != null)
|
||||
// {
|
||||
// YooAsset.Editor.AssetBundleCollectorSettingData.RemovePackage(assetBundleCollectorPackage);
|
||||
// }
|
||||
// DomainRoot = DomainMainPath;
|
||||
// packageName = "Main";
|
||||
// Mark();
|
||||
// CreateRes(packageName,
|
||||
// $"{DomainRoot}/Main/AddressableRes",
|
||||
// $"{DomainRoot}/Main/Script");
|
||||
|
||||
|
||||
|
||||
//copydll
|
||||
AddHotfixAddressableDll();
|
||||
//清空旧数据
|
||||
YooAsset.Editor.AssetBundleCollectorSettingData.ClearAll();
|
||||
//清空用户旧数据
|
||||
|
||||
|
||||
packageName = "";
|
||||
package = null;
|
||||
foreach (var package in AssetBundleCollectorSettingData.Setting.Packages)
|
||||
{
|
||||
if (package.PackageName == BuildAssetWindow.GetBuildPackageName())
|
||||
{
|
||||
assetBundleCollectorPackage = package;
|
||||
}
|
||||
}
|
||||
if (assetBundleCollectorPackage != null)
|
||||
{
|
||||
YooAsset.Editor.AssetBundleCollectorSettingData.RemovePackage(assetBundleCollectorPackage);
|
||||
}
|
||||
string configPath =
|
||||
$"Assets/Domain/{BuildAssetWindow.GetBuildPackageName()}/Conf/HotfixMainResDomain.asset";
|
||||
HotfixMainResDomain hotfixMainResDomain = AssetDatabase.LoadAssetAtPath<HotfixMainResDomain>(configPath);
|
||||
|
||||
Reference in New Issue
Block a user