| 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 | { |
no test coverage detected