利用Unity 自带的类创建常用的文件夹
public static class SystemUtility
{
[MenuItem("Tools/InitFolder")]
public static void InitFolder()
{
CreateFolder("Arts");
CreateFolder("3D");
CreateFolder("2D");
CreateFolder("Plugins");
CreateFolder("ResAB");
CreateFolder("Resources");
CreateFolder("Scripts");
CreateFolder("StreamingAssets");
CreateFolder("ToLua");
AssetDatabase.Refresh();
}
public static void CreateFolder(string fileName)
{
Directory.CreateDirectory(Application.dataPath + "/" + fileName);
}
}