PanelSettings.referenceResolution

public Vector2Int referenceResolution;

Description

The resolution the UI is designed for.

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.


Did you find this page useful? Please give it a rating: