git空目录无法上传,增加检索校验

This commit is contained in:
2025-04-16 18:20:46 +08:00
parent 779435c062
commit 596e156e8e
5 changed files with 133 additions and 48 deletions

View File

@@ -0,0 +1,27 @@
using Stary.Evo.Editor;
using UnityEditor;
using UnityEngine;
namespace Stary.Evo
{
[InitializeOnLoad]
public static class CreatDomainDirectory
{
static CreatDomainDirectory()
{
if (PlayerPrefs.GetInt("CreatDomainDirectory") == 0)
{
PlayerPrefs.SetInt("CreatDomainDirectory", 1);
bool isOk = EditorUtility.DisplayDialog("提示", "是否检索并创建缺失目录", "是", "否");
if (isOk)
{
var DomainAll = CreatAssetWindow.GetCreatDomainAll();
foreach (var domain in DomainAll)
{
CreatAssetWindow.CreateDomainDirectory(domain.DomainName);
}
}
}
}
}
}