get screen size||doc135642

September 20, 2022

Format

 Blockman:getScreenSize() 
  • The class to which the function belongs:Blockman

Description

Get screen size.


Value Returned

type Description
table return screen size


screen size content

Field Name type Description
w int screen width
h int screen height


Code Samples

local screenSize = Blockman.Instance():getScreenSize()
print(screenSize.w)
print(screenSize.h)