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; }