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

Function IsUObjectValid

Plugins/UnLua/Source/UnLua/Private/UnLuaBase.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace UnLua
27{
28 bool IsUObjectValid(UObjectBase* ObjPtr)
29 {
30 if (!ObjPtr || ObjPtr == LowLevel::ReleasedPtr)
31 return false;
32 return (ObjPtr->GetFlags() & (RF_BeginDestroyed | RF_FinishDestroyed)) == 0 && ObjPtr->IsValidLowLevelFast();
33 }
34
35 lua_State* CreateState()
36 {

Callers 3

GetUObjectFunction · 0.85
UObject_IsValidFunction · 0.85
UObject_IsAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected