From d5934522b0bd12275a5b9f7913692255a1971074 Mon Sep 17 00:00:00 2001 From: in0finite Date: Sun, 16 Jan 2022 18:07:06 +0100 Subject: [PATCH] create root folder aswell --- Assets/Scripts/Editor/AssetExporter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/Editor/AssetExporter.cs b/Assets/Scripts/Editor/AssetExporter.cs index 917f339d..6d565fe1 100644 --- a/Assets/Scripts/Editor/AssetExporter.cs +++ b/Assets/Scripts/Editor/AssetExporter.cs @@ -201,6 +201,9 @@ namespace SanAndreasUnity.Editor void CreateFolders() { + if (!Directory.Exists(m_selectedFolder)) + Directory.CreateDirectory(m_selectedFolder); + string[] folders = new string[] { "Models",