git空目录无法上传,增加检索校验
This commit is contained in:
27
Assets/00.StaryEvo/Editor/BuildAsset/CreatDomainDirectory.cs
Normal file
27
Assets/00.StaryEvo/Editor/BuildAsset/CreatDomainDirectory.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user