lovr.system.getWindowDensity
EditReturns the window pixel density. High DPI windows will usually return 2.0 to indicate that there are 2 pixels for every window coordinate in each axis. On a normal display, 1.0 is returned, indicating that window coordinates match up with pixels 1:1.
density = lovr.system.getWindowDensity()
Arguments
None
Returns
Name | Type | Description |
density | number | The pixel density of the window. |