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

Function GetScene

engine/gui/src/gui_script.cpp:183–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 };
182
183 HScene GetScene(lua_State* L)
184 {
185 int top = lua_gettop(L);
186 (void) top;
187 dmScript::GetInstance(L);
188 HScene scene = (Scene*)dmScript::ToUserType(L, -1, GUI_SCRIPT_INSTANCE_TYPE_HASH);
189 lua_pop(L, 1);
190 assert(top == lua_gettop(L));
191 return scene;
192 }
193
194 static Scene* GuiScriptInstance_Check(lua_State* L, int index)
195 {

Callers 5

LuaCheckNodeInternalFunction · 0.85
NodeProxy_tostringFunction · 0.85
LuaSetRotationFunction · 0.85
LuaSetSizeFunction · 0.85
GetSceneFromLuaFunction · 0.85

Calls 4

lua_gettopFunction · 0.85
ToUserTypeFunction · 0.85
GetInstanceFunction · 0.50
assertFunction · 0.50

Tested by

no test coverage detected