Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration UIScaleMode

Determines how UI elements in the Canvas are scaled.

Index

Enumeration members

ConstantPixelSize

ConstantPixelSize: = 0

In Constant Pixel Size mode, you specify UI element positions and sizes in pixels on the screen.

In practical terms, this means that elements retain the same size, in pixels, regardless of screen size.

ScaleWithScreenSize

ScaleWithScreenSize: = 1

In Scale With Screen Size mode, the Canvas has a specified reference resolution and you specify UI element positions and sizes in pixels within that resolution.

If the screen resolution is different from the the Canvas resolution, the Canvas scales up or down, as needed, to fit the screen.

In practical terms, this means that UI elements get bigger as the screen gets bigger, and vice versa.

Generated using TypeDoc