MCPcopy Create free account
hub / github.com/axmolengine/axmol / onEnter

Method onEnter

extensions/scripting/lua-bindings/manual/ComponentLua.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void ComponentLua::onEnter()
125{
126 if (_succeedLoadingScript && getLuaFunction(ComponentLua::ON_ENTER))
127 {
128 getUserData();
129 LuaEngine::getInstance()->getLuaStack()->executeFunction(1);
130 }
131}
132
133void ComponentLua::onExit()
134{

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
executeFunctionMethod · 0.80
getUserDataFunction · 0.50

Tested by

no test coverage detected