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

Method NotifyUObjectDeleted

Plugins/UnLua/Source/UnLua/Private/LuaEnv.cpp:217–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 void FLuaEnv::NotifyUObjectDeleted(const UObjectBase* ObjectBase, int32 Index)
218 {
219 UObject* Object = (UObject*)ObjectBase;
220 PropertyRegistry->NotifyUObjectDeleted(Object);
221 FunctionRegistry->NotifyUObjectDeleted(Object);
222 if (Manager)
223 Manager->NotifyUObjectDeleted(Object);
224 ObjectRegistry->NotifyUObjectDeleted(Object);
225 ClassRegistry->NotifyUObjectDeleted(Object);
226 EnumRegistry->NotifyUObjectDeleted(Object);
227
228 if (CandidateInputComponents.Num() <= 0)
229 return;
230
231 const int32 NumRemoved = CandidateInputComponents.Remove((UInputComponent*)Object);
232 if (NumRemoved > 0 && CandidateInputComponents.Num() < 1)
233 FWorldDelegates::OnWorldTickStart.Remove(OnWorldTickStartHandle);
234 }
235
236 void FLuaEnv::OnUObjectArrayShutdown()
237 {

Callers 1

OnBlueprintCompiledMethod · 0.45

Calls 2

NumMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected