MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UnregisterObject

Method UnregisterObject

Source/Engine/Scripting/Scripting.cpp:1117–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117void Scripting::UnregisterObject(ScriptingObject* obj)
1118{
1119 ScopeLock lock(_objectsLocker);
1120
1121 //ASSERT(!obj->_id.IsValid() || _objectsDictionary.ContainsValue(obj));
1122
1123#if USE_OBJECTS_DISPOSE_CRASHES_DEBUGGING
1124 LOG(Info, "[UnregisterObject] obj = 0x{0:x}, {1}", (uint64)obj, String(ScriptingObjectData(obj).TypeName));
1125#endif
1126 _objectsDictionary.Remove(obj->GetID());
1127}
1128
1129void Scripting::OnObjectIdChanged(ScriptingObject* obj, const Guid& oldId)
1130{

Callers 1

Calls 4

ScriptingObjectDataClass · 0.85
GetIDMethod · 0.80
StringFunction · 0.50
RemoveMethod · 0.45

Tested by

no test coverage detected