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

Method SetManagedInstance

Source/Engine/Scripting/ScriptingObject.cpp:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void ScriptingObject::SetManagedInstance(MObject* instance)
301{
302 ASSERT(_gcHandle == 0);
303#if USE_NETCORE
304 _gcHandle = (MGCHandle)instance;
305#elif !COMPILE_WITHOUT_CSHARP
306 _gcHandle = MCore::GCHandle::New(instance);
307#endif
308}
309
310void ScriptingObject::OnManagedInstanceDeleted()
311{

Callers

nothing calls this directly

Calls 1

NewFunction · 0.50

Tested by

no test coverage detected