referenceDpi
The DPI that the UI is designed for.
読み終わるまでの所要時間 1 分最終更新 20日前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public float referenceDpi { get; set; }
Remarks
When PanelSettings.scaleMode is set to , Unity compares this value to the actual screen DPI, and scales the UI accordingly in the Game view.
ConstantPhysicalSizeIf Unity cannot determine the screen DPI, it uses the PanelSettings.fallbackDpi instead.