Env

Environment Variables

Static Methods
macroX
static number macroX()

Return the horizontal value in macro dimension

Return
number The horizontal value in macro dimension
macroY
static number macroY()

Return the vertical value in macro dimension

Return
number The vertical value in macro dimension
deviceX
static number deviceX()

Return the horizontal value in device dimension

Return
number The horizontal value in device dimension
deviceY
static number deviceY()

Return the vertical value in device dimension

Return
number The vertical value in device dimension
deviceW
static number deviceW()

Return the width of the device

Return
number The width of the device
deviceH
static number deviceH()

Return the height of the device

Return
number The height of the device
isDebug
static bool isDebug()

Check if debug is enabled

Return
bool true in Edit Mode and if the user enabled "debug" in Play Mode. false otherwise
cutouts
static array cutouts()

Return the cut out size of the current device (status bar, navigation buttons, etc...)

Return
array Array with 4 elements: left, top, right, bottom

© 2021 - Macrorify by KoK-CODE