| 134 | } |
| 135 | |
| 136 | void FClassDesc::Load() |
| 137 | { |
| 138 | if (IsEngineExitRequested() || GIsGarbageCollecting) |
| 139 | return; |
| 140 | |
| 141 | if (Struct.IsValid()) |
| 142 | return; |
| 143 | |
| 144 | UnLoad(); |
| 145 | |
| 146 | FString Name = (ClassName[0] == 'U' || ClassName[0] == 'A' || ClassName[0] == 'F') ? ClassName.RightChop(1) : ClassName; |
| 147 | UStruct* Found = FindObject<UStruct>(ANY_PACKAGE, *Name); |
| 148 | if (!Found) |
| 149 | Found = LoadObject<UStruct>(nullptr, *Name); |
| 150 | |
| 151 | Struct = Found; |
| 152 | RawStructPtr = Found; |
| 153 | } |
| 154 | |
| 155 | void FClassDesc::UnLoad() |
| 156 | { |