Update 'ProjectStructureCreatorEditor.cs'
This commit is contained in:
parent
f1028a034a
commit
518d4de29d
|
@ -5,7 +5,6 @@
|
||||||
Signed by an automated program written by the author
|
Signed by an automated program written by the author
|
||||||
*/
|
*/
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Syntriax.Editor
|
namespace Syntriax.Editor
|
||||||
{
|
{
|
||||||
|
@ -20,25 +19,16 @@ namespace Syntriax.Editor
|
||||||
CreateSubFolder($"{AssetPath}/Art", "Materials");
|
CreateSubFolder($"{AssetPath}/Art", "Materials");
|
||||||
CreateSubFolder($"{AssetPath}/Art", "Models");
|
CreateSubFolder($"{AssetPath}/Art", "Models");
|
||||||
CreateSubFolder($"{AssetPath}/Art", "Textures");
|
CreateSubFolder($"{AssetPath}/Art", "Textures");
|
||||||
|
CreateSubFolder($"{AssetPath}/Art", "Audio");
|
||||||
CreateSubFolder($"{AssetPath}", "Audio");
|
CreateSubFolder($"{AssetPath}/Art/Audio", "Musics");
|
||||||
CreateSubFolder($"{AssetPath}/Audio", "Musics");
|
CreateSubFolder($"{AssetPath}/Art/Audio", "Sounds");
|
||||||
CreateSubFolder($"{AssetPath}/Audio", "Sounds");
|
|
||||||
|
|
||||||
CreateSubFolder($"{AssetPath}", "Scripts");
|
CreateSubFolder($"{AssetPath}", "Scripts");
|
||||||
|
|
||||||
CreateSubFolder($"{AssetPath}", "Level");
|
CreateSubFolder($"{AssetPath}", "Prefabs");
|
||||||
CreateSubFolder($"{AssetPath}/Level", "Prefabs");
|
CreateSubFolder($"{AssetPath}/Prefabs", "UI");
|
||||||
CreateSubFolder($"{AssetPath}/Level", "UI");
|
|
||||||
|
|
||||||
AssetDatabase.MoveAsset($"{AssetPath}/Scenes", $"{AssetPath}/Level/Scenes");
|
CreateSubFolder($"{AssetPath}", "Modules");
|
||||||
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}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void CreateSubFolder(string parentFolder, string subFolder)
|
private static void CreateSubFolder(string parentFolder, string subFolder)
|
||||||
|
|
Loading…
Reference in New Issue