# referenceDpi

> The DPI that the UI is designed for.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public float referenceDpi { get; set; }
```

### Remarks

When [PanelSettings.scaleMode](/engine/6000.0/script-reference/unityengine/uielements/panelsettings/scalemode.md) 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](/engine/6000.0/script-reference/unityengine/uielements/panelsettings/fallbackdpi.md) instead.
