# 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 _screenMatchMode.

## Definition

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

```csharp
public enum PanelScreenMatchMode
```

## Fields

| Value                                                                                                                   | Description                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [Expand](/engine/6000.5/script-reference/unityengine/uielements/panelscreenmatchmode/expand.md)                         | Expand the panel area horizontally or vertically so the panel size is never smaller than the reference resolution. |
| [MatchWidthOrHeight](/engine/6000.5/script-reference/unityengine/uielements/panelscreenmatchmode/matchwidthorheight.md) | Scales the panel area using width, height, or a mix of the two as a reference.                                     |
| [Shrink](/engine/6000.5/script-reference/unityengine/uielements/panelscreenmatchmode/shrink.md)                         | Crops the panel area horizontally or vertically so the panel size never exceeds the reference resolution.          |
