MCPcopy Create free account
hub / github.com/defold/defold / ResetScriptInstance

Function ResetScriptInstance

engine/gameobject/src/gameobject/gameobject_script.cpp:2523–2528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2521 }
2522
2523 static void ResetScriptInstance(HScriptInstance script_instance) {
2524 memset(script_instance, 0, sizeof(ScriptInstance));
2525 script_instance->m_InstanceReference = LUA_NOREF;
2526 script_instance->m_ScriptDataReference = LUA_NOREF;
2527 script_instance->m_ContextTableReference = LUA_NOREF;
2528 }
2529
2530 HScriptInstance NewScriptInstance(CompScriptWorld* script_world, HScript script, HInstance instance, uint16_t component_index)
2531 {

Callers 2

NewScriptInstanceFunction · 0.85
DeleteScriptInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected