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

Function GetMetatableName

Plugins/UnLua/Source/UnLua/Public/LowLevel.cpp:54–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 FString GetMetatableName(const UObject* Object)
55 {
56 if (!Object)
57 return "";
58
59 if (UNLIKELY(Object->IsA<UEnum>()))
60 {
61 return Object->IsNative() ? Object->GetName() : Object->GetPathName();
62 }
63
64 const UStruct* Struct = Cast<UStruct>(Object);
65 if (Struct)
66 return GetMetatableName(Struct);
67
68 Struct = Object->GetClass();
69 return GetMetatableName(Struct);
70 }
71
72 FString GetMetatableName(const UStruct* Struct)
73 {

Callers 6

PushObjectCoreFunction · 0.85
UObject_LoadFunction · 0.85
RegisterReflectedTypeMethod · 0.85
RegisterMethod · 0.85
RegisterMethod · 0.85

Calls 2

IsNativeMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected