27 lines
819 B
C#
27 lines
819 B
C#
|
|
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);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|