Skip to content

Commit e9751d0

Browse files
Merge branch 'master' of https://github.com/Tencent/UnLua
2 parents cd9d3b6 + bb62135 commit e9751d0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ namespace UnLua
110110
// declaration
111111
Ret += FString::Printf(TEXT("local %s = {}\r\n"), *EscapeSymbolName(TypeName));
112112

113+
// exported functions
114+
const auto Exported = GetExportedReflectedClasses().Find(TypeName);
115+
if (Exported)
116+
{
117+
TArray<IExportedFunction*> ExportedFunctions;
118+
(*Exported)->GetFunctions(ExportedFunctions);
119+
for (const auto Function : ExportedFunctions)
120+
Function->GenerateIntelliSense(Ret);
121+
}
113122
return Ret;
114123
}
115124

0 commit comments

Comments
 (0)