Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


referenceResolution

The resolution the UI is designed for.
Read time 1 minuteLast updated 6 days ago

Definition

public Vector2Int referenceResolution { get; set; }

Remarks

If the screen resolution is larger than the reference resolution, Unity scales the UI up in the Game view. If it's smaller, Unity scales the UI down. Unity scales the UI according to the PanelSettings.screenMatchMode.