display.contentWidth

Type Number
Library display.*
Revision Release 2022.3683
Keywords contentWidth, content
See also display.contentHeight

Overview

A read-only property representing the width of the content area in pixels. This will default to the screen width, but may be another value if you are using content scaling in config.lua.

See the Project Configuration guide for details on the content area.