mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
fix creating folders
This commit is contained in:
parent
8d936b3499
commit
4c03c5f33f
1 changed files with 7 additions and 7 deletions
|
@ -233,17 +233,17 @@ namespace SanAndreasUnity.Editor
|
|||
|
||||
string[] folders = new string[]
|
||||
{
|
||||
"Models",
|
||||
"Materials",
|
||||
"Textures",
|
||||
"Prefabs",
|
||||
"CollisionModels",
|
||||
ModelsPath,
|
||||
MaterialsPath,
|
||||
TexturesPath,
|
||||
PrefabsPath,
|
||||
CollisionModelsPath,
|
||||
};
|
||||
|
||||
foreach (string folder in folders)
|
||||
{
|
||||
if (!AssetDatabase.IsValidFolder(Path.Combine(m_selectedFolder, folder)))
|
||||
AssetDatabase.CreateFolder(m_selectedFolder, folder);
|
||||
if (!Directory.Exists(folder))
|
||||
Directory.CreateDirectory(folder);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue