return function(entities, id, data) local camera = entities:getComponent(id, "camera") if camera then print("resize camera!") camera.projection:perspectiveResize(data.width/data.height) end end