MCPcopy Create free account
hub / github.com/Tencent/UnLua / GetUE

Function GetUE

Plugins/UnLua/Source/UnLuaEditor/Private/UnLuaIntelliSense.cpp:273–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 }
272
273 FString GetUE(const TArray<const UField*> AllTypes)
274 {
275 FString Content = "UE = {";
276
277 for (const auto Type : AllTypes)
278 {
279 if (!Type->IsNative())
280 continue;
281
282 const auto Name = GetTypeName(Type);
283 Content += FString::Printf(TEXT("\r\n ---@type %s\r\n"), *Name);
284 Content += FString::Printf(TEXT(" %s = nil,\r\n"), *Name);
285 }
286
287 Content += "}\r\n";
288 return Content;
289 }
290
291 FString GetTypeName(const UObject* Field)
292 {

Callers 1

ExportUEMethod · 0.85

Calls 2

GetTypeNameFunction · 0.85
IsNativeMethod · 0.80

Tested by

no test coverage detected