mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 14:00:17 +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[]
|
string[] folders = new string[]
|
||||||
{
|
{
|
||||||
"Models",
|
ModelsPath,
|
||||||
"Materials",
|
MaterialsPath,
|
||||||
"Textures",
|
TexturesPath,
|
||||||
"Prefabs",
|
PrefabsPath,
|
||||||
"CollisionModels",
|
CollisionModelsPath,
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (string folder in folders)
|
foreach (string folder in folders)
|
||||||
{
|
{
|
||||||
if (!AssetDatabase.IsValidFolder(Path.Combine(m_selectedFolder, folder)))
|
if (!Directory.Exists(folder))
|
||||||
AssetDatabase.CreateFolder(m_selectedFolder, folder);
|
Directory.CreateDirectory(folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue