display.contentScaleY

Type Number
Library display.*
Revision Release 2024.3703
Keywords contentHeight, scale, scaling
See also display.contentScaleX

Overview

The ratio between content pixel and screen pixel height.

This value will always be 1 unless your project’s config.lua file specifies your content’s height and width. Different scale modes like "letterbox" and "zoomEven" will result in different scale factors.

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