# DisplayInfo

> Represents a connected display.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<DisplayInfo>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct DisplayInfo : IEquatable<DisplayInfo>
```

## Fields

| Value                                                                                 | Description                                                                                                                                                           |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [height](/engine/7000.0/script-reference/unityengine/displayinfo/height.md)           | The display height in pixels.                                                                                                                                         |
| [name](/engine/7000.0/script-reference/unityengine/displayinfo/name.md)               | Human-friendly display name.                                                                                                                                          |
| [physicalDpi](/engine/7000.0/script-reference/unityengine/displayinfo/physicaldpi.md) | The current pixel density of the display measured in dots-per-inch (DPI).                                                                                             |
| [refreshRate](/engine/7000.0/script-reference/unityengine/displayinfo/refreshrate.md) | The current refresh rate of the display.                                                                                                                              |
| [width](/engine/7000.0/script-reference/unityengine/displayinfo/width.md)             | The display width in pixels.                                                                                                                                          |
| [workArea](/engine/7000.0/script-reference/unityengine/displayinfo/workarea.md)       | Specifies the work area rectangle of the display relative to the top left corner. For example, it excludes the area covered by the macOS Dock or the Windows Taskbar. |

## Properties

| Property                                                                              | Description                                                               |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [resolutions](/engine/7000.0/script-reference/unityengine/displayinfo/resolutions.md) | Returns all full-screen resolutions supported on the display (Read Only). |

## Static Methods

| Method                                                                                                                        | Description                                                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetLayout](/engine/7000.0/script-reference/unityengine/displayinfo/getlayout.md)                                             | Retrieves information about the connected displays and populates a list with properties such as display name, resolution, refresh rate, and other relevant attributes.             |
| [RegisterLayoutChangedCallback](/engine/7000.0/script-reference/unityengine/displayinfo/registerlayoutchangedcallback.md)     | Registers a callback that Unity invokes when the display layout changes, for example when a display is connected or disconnected.                                                  |
| [UnregisterLayoutChangedCallback](/engine/7000.0/script-reference/unityengine/displayinfo/unregisterlayoutchangedcallback.md) | Removes a callback that was registered with [DisplayInfo.RegisterLayoutChangedCallback](/engine/7000.0/script-reference/unityengine/displayinfo/registerlayoutchangedcallback.md). |
