PanelScreenMatchMode
Options that specify how to scale the panel area when the aspect ratio of the current screen resolution does not match the reference resolution. See PanelSettings.screenMatchMode.
読み終わるまでの所要時間 1 分最終更新 21日前
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public enum PanelScreenMatchMode
Fields
Value | Description |
|---|---|
| Expand | Expand the panel area horizontally or vertically so the panel size is never smaller than the reference resolution. |
| MatchWidthOrHeight | Scales the panel area using width, height, or a mix of the two as a reference. |
| Shrink | Crops the panel area horizontally or vertically so the panel size never exceeds the reference resolution. |