GetNativeScale

Overview

This is a helper method to put placement position correctly on iOS devices. Avoid using on Android platforms. Returns the native scale factor for the physical screen. See Apple documentation herearrow-up-right.

Syntax

GetNativeScale()

returns float – The native scale factor for the physical screen (iOS). Returns zero for Android.

Examples

float nativeScale = GetNativeScale();

Last updated