From b047237209674c88d37f96aa537a9a5da40c9067 Mon Sep 17 00:00:00 2001 From: Eros-L <443900515@qq.com> Date: Thu, 4 May 2023 13:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E5=AF=B9=20USTRUCT?= =?UTF-8?q?=20=E8=BF=9B=E8=A1=8C=E9=9D=99=E6=80=81=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E6=97=B6=EF=BC=8CIntelliSense=20=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp b/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp index afb2ad35..7e132e2d 100644 --- a/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp +++ b/Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp @@ -110,6 +110,15 @@ namespace UnLua // declaration Ret += FString::Printf(TEXT("local %s = {}\r\n"), *EscapeSymbolName(TypeName)); + // exported functions + const auto Exported = GetExportedReflectedClasses().Find(TypeName); + if (Exported) + { + TArray ExportedFunctions; + (*Exported)->GetFunctions(ExportedFunctions); + for (const auto Function : ExportedFunctions) + Function->GenerateIntelliSense(Ret); + } return Ret; }