GetScale

Overview

This is a helper method to put placement position correctly on iOS devices. Avoid using on Android platforms. Returns the natural scale factor associated with the screen. See Apple documentation here.

Syntax

GetScale()

returns float – The natural scale factor associated with the screen (iOS). Returns zero for Android.

Examples

float scale = GetScale();

Last updated