Documentation

Unity Engine

Unity Engine

referenceResolution

The resolution the UI is designed for.
Read time 1 minuteLast updated 2 months 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.