PanelSettings.referenceDpi

public float referenceDpi;

Description

The DPI that the UI is designed for.

When PanelSettings.scaleMode is set to ConstantPhysicalSize, Unity compares this value to the actual screen DPI, and scales the UI accordingly in the Game view.

If Unity cannot determine the screen DPI, it uses the PanelSettings.fallbackDpi instead.


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