2025-04-16 18:20:46 +08:00
|
|
|
|
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);
|
2025-04-17 16:36:24 +08:00
|
|
|
|
bool isOk = EditorUtility.DisplayDialog("提示", "发现目录存在缺失,是否检索并创建缺失目录", "是", "否");
|
2025-04-16 18:20:46 +08:00
|
|
|
|
if (isOk)
|
|
|
|
|
|
{
|
|
|
|
|
|
var DomainAll = CreatAssetWindow.GetCreatDomainAll();
|
|
|
|
|
|
foreach (var domain in DomainAll)
|
|
|
|
|
|
{
|
|
|
|
|
|
CreatAssetWindow.CreateDomainDirectory(domain.DomainName);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|