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;