Update 'ProjectStructureCreatorEditor.cs'

This commit is contained in:
Syntriax 2022-11-13 13:58:51 +00:00
parent f1028a034a
commit 518d4de29d
1 changed files with 6 additions and 16 deletions

View File

@ -5,7 +5,6 @@
Signed by an automated program written by the author
*/
using UnityEditor;
using UnityEngine;
namespace Syntriax.Editor
{
@ -20,25 +19,16 @@ namespace Syntriax.Editor
CreateSubFolder($"{AssetPath}/Art", "Materials");
CreateSubFolder($"{AssetPath}/Art", "Models");
CreateSubFolder($"{AssetPath}/Art", "Textures");
CreateSubFolder($"{AssetPath}", "Audio");
CreateSubFolder($"{AssetPath}/Audio", "Musics");
CreateSubFolder($"{AssetPath}/Audio", "Sounds");
CreateSubFolder($"{AssetPath}/Art", "Audio");
CreateSubFolder($"{AssetPath}/Art/Audio", "Musics");
CreateSubFolder($"{AssetPath}/Art/Audio", "Sounds");
CreateSubFolder($"{AssetPath}", "Scripts");
CreateSubFolder($"{AssetPath}", "Level");
CreateSubFolder($"{AssetPath}/Level", "Prefabs");
CreateSubFolder($"{AssetPath}/Level", "UI");
CreateSubFolder($"{AssetPath}", "Prefabs");
CreateSubFolder($"{AssetPath}/Prefabs", "UI");
AssetDatabase.MoveAsset($"{AssetPath}/Scenes", $"{AssetPath}/Level/Scenes");
CreateSubFolder($"{AssetPath}/Level", "Scenes");
string thisEditorPath = AssetDatabase.GetAssetPath(MonoScript.FromScriptableObject(new ProjectStructureCreatorEditor()));
string fileName = System.IO.Path.GetFileName(thisEditorPath);
CreateSubFolder($"{AssetPath}/Scripts", "Syntriax");
CreateSubFolder($"{AssetPath}/Scripts/Syntriax", "Editor");
AssetDatabase.MoveAsset(thisEditorPath, $"{AssetPath}/Scripts/Syntriax/Editor/{fileName}");
CreateSubFolder($"{AssetPath}", "Modules");
}
private static void CreateSubFolder(string parentFolder, string subFolder)