display.contentCenterY

Type Number
Library display.*
Revision 2017.3060
Keywords contentHeight, content
See also display.contentHeight
[display.contentCenter X]api.library.display.contentCenterX

Overview

The center of the content area along the y axis. Equivalent to display.contentHeight * 0.5.

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

Example

local obj = display.newImage( "image.png" )
obj.x = display.contentCenterX
obj.y = display.contentCenterY