ドキュメント

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.