文档

Unity Engine

Unity Engine

referenceResolution

The resolution the UI is designed for.
阅读时间1 分钟最后更新于 21 天前

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.