using UnityEngine;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class NewBehaviourScript : MonoBehaviour
{
#if UNITY_EDITOR
[MenuItem("Tools/CreateFolder #&_b")]
private static void GenerateFolder()
{
string prjPath = Application.dataPath + "/";
Directory.CreateDirectory(prjPath + "ArtRes");
Directory.CreateDirectory(prjPath + "ArtRes/Audio");
Directory.CreateDirectory(prjPath + "ArtRes/Texture");
Directory.CreateDirectory(prjPath + "ArtRes/Texture/UI");
Directory.CreateDirectory(prjPath + "ArtRes/Video");
Directory.CreateDirectory(prjPath + "Materials");
Directory.CreateDirectory(prjPath + "Resources");
Directory.CreateDirectory(prjPath + "Scripts");
Directory.CreateDirectory(prjPath + "Scenes");
Directory.CreateDirectory(prjPath + "Plugins");
Directory.CreateDirectory(prjPath + "Shaders");
Directory.CreateDirectory(Application.streamingAssetsPath);
AssetDatabase.Refresh();//刷新unity资源显示
Debug.Log("Created Finished");
}
#endif
}