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

Method Load

Plugins/UnLua/Source/UnLua/Private/ReflectionUtils/ClassDesc.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void 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
155void FClassDesc::UnLoad()
156{

Callers

nothing calls this directly

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected