ReferenceSystemSystem:getDpi()✦Use with AI▾本页总览System:getDpi() 获取设备的屏幕密度,以每英寸点数(dpi)为单位。 签名 System:getDpi(): number 返回值 number - 显示密度,例如 420。 示例 local dpi = System:getDpi()toast("Screen density: " .. dpi .. " dpi") 兼容版本:1.0.0.37 及以上