Hi Ed,
Just a simple question. I’m using the memory and fps meters while developing my current app but I don’t want them visible all of the time. I currently call them up using a keypress, but would like to remove them by pressing the same key. How easy would it be to add a remove function for them?
I have the following code in my main.lua which is used to create the meters
local isSimulator = "simulator" == system.getInfo( "environment" ) if isSimulator then -- Show FPS & Memory meters local function debugKeys( event ) local phase = event.phase local key = event.keyName if phase == "up" then if key == "f" then ssk.meters.create\_mem( {allowDrag=true} ) ssk.meters.create\_fps( {allowDrag=true} ) end end end Runtime:addEventListener( "key", debugKeys ) end