From 1b23d6875ff6be80e64bb79b347dc7a5ba4b0496 Mon Sep 17 00:00:00 2001 From: IWIN Date: Wed, 13 Dec 2023 15:07:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E7=9B=AE=E5=BD=95=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E8=B7=AF=E5=BE=84=E4=B8=AD=E5=A4=9A=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=AAConfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Source/UnLuaEditor/Private/Toolbars/UnLuaEditorToolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/UnLua/Source/UnLuaEditor/Private/Toolbars/UnLuaEditorToolbar.cpp b/Plugins/UnLua/Source/UnLuaEditor/Private/Toolbars/UnLuaEditorToolbar.cpp index c1451c70..38af0275 100644 --- a/Plugins/UnLua/Source/UnLuaEditor/Private/Toolbars/UnLuaEditorToolbar.cpp +++ b/Plugins/UnLua/Source/UnLuaEditor/Private/Toolbars/UnLuaEditorToolbar.cpp @@ -295,7 +295,7 @@ void FUnLuaEditorToolbar::CreateLuaTemplate_Executed() { auto TemplateClassName = TemplateClass->GetName().EndsWith("_C") ? TemplateClass->GetName().LeftChop(2) : TemplateClass->GetName(); auto RelativeFilePath = "Config/LuaTemplates" / TemplateClassName + ".lua"; - auto FullFilePath = FPaths::ProjectConfigDir() / RelativeFilePath; + auto FullFilePath = FPaths::ProjectDir() / RelativeFilePath; if (!FPaths::FileExists(FullFilePath)) FullFilePath = BaseDir / RelativeFilePath;