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

Function GetComponentFromLua

engine/gamesys/src/gamesys/gamesys_script.cpp:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 void GetComponentFromLua(lua_State* L, int index, const char* component_type, dmGameObject::HComponentWorld* out_world, dmGameObject::HComponent* component, dmMessage::URL* url)
106 {
107 dmGameObject::HInstance instance = CheckGOInstance(L, index);
108 dmGameObject::HCollection collection = dmGameObject::GetCollection(instance);
109 dmGameObject::GetComponentFromLua(L, index, collection, component_type, component, url, out_world);
110 }
111}
112
113

Callers 15

FactoryComp_GetStatusFunction · 0.50
FactoryComp_UnloadFunction · 0.50
FactoryComp_LoadFunction · 0.50
FactoryComp_CreateFunction · 0.50
FactoryComp_SetPrototypeFunction · 0.50
GetCollisionObjectFunction · 0.50

Calls 2

CheckGOInstanceFunction · 0.85
GetCollectionFunction · 0.85

Tested by 1