{"name":"pixelGrid","operator":null,"title":"pixelGrid","type":"command","url":"https://community.bistudio.com/wiki/pixelGrid","revid":376543,"updated":"2025-10-27T00:18:56Z","groups":["GUI Control - Positioning"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.60"}],"since":{"game":"arma3","name":"Arma 3","version":"1.60"},"arma3_since":"1.60","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns grid size based on screen resolution, UI size and configs: uiScaleFactor, uiScaleMaxGrids.","syntaxes":[{"syntax":"pixelGrid","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Number","types":["Number"],"description":"grid size, see Arma 3: Pixel Grid System","text":"Number - grid size, see Arma 3: Pixel Grid System"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nprivate _gridHeight = pixelH * pixelGrid;\n```","code":["private _gridHeight = pixelH * pixelGrid;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","Pixel Grid System"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Positioning","Introduced with Arma 3 version 1.60","Scripting Commands"]}