Skip to content

Commit b047237

Browse files
committed
修正:对 USTRUCT 进行静态导出时,IntelliSense 无法正确生成
1 parent 5e74c4b commit b047237

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)