Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UI.CanvasScaler.referenceResolution

Switch to Manual
public var referenceResolution: Vector2;

Description

The resolution the UI layout is designed for.

If the screen resolution is larger, the UI will be scaled up, and if it's smaller, the UI will be scaled down. This is done in accordance with the Screen Match Mode.