Skip to content

Commit

Permalink
Merge pull request #617 from Eros-L/master
Browse files Browse the repository at this point in the history
修正:对 USTRUCT 进行静态导出时,IntelliSense 无法正确生成
  • Loading branch information
xuyanghuang-tencent authored May 4, 2023
2 parents 5e74c4b + b047237 commit bb62135
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IExportedFunction*> ExportedFunctions;
(*Exported)->GetFunctions(ExportedFunctions);
for (const auto Function : ExportedFunctions)
Function->GenerateIntelliSense(Ret);
}
return Ret;
}

Expand Down

0 comments on commit bb62135

Please sign in to comment.