Table of Contents

Class FlexalonDpiScaler

Namespace
Flexalon
Assembly
Flexalon.dll

This class is used to set the scale a canvas based on the pixel density of the screen.

[ExecuteAlways]
[AddComponentMenu("Flexalon/Flexalon DPI Scaler")]
public class FlexalonDpiScaler : MonoBehaviour
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
FlexalonDpiScaler

Methods

GetPixelDensity()

public static float GetPixelDensity()

Returns

float