Skip to content

Commit bb62135

Browse files
Merge pull request Tencent#617 from Eros-L/master
修正:对 USTRUCT 进行静态导出时,IntelliSense 无法正确生成
2 parents 5e74c4b + b047237 commit bb62135

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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)