display.contentWidth

Type Number
Library display.*
Revision Release 2024.3703
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.