# ScreenGui

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [LayerCollector](https://rapi.sleaze.dev/classes/LayerCollector.md), [GuiBase2d](https://rapi.sleaze.dev/classes/GuiBase2d.md), [GuiBase](https://rapi.sleaze.dev/classes/GuiBase.md), [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Subclasses: [GuiMain](https://rapi.sleaze.dev/classes/GuiMain.md)
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/ScreenGui/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/ScreenGui

Primary container of on-screen 2D user interface elements.

## Properties

### ClipToDeviceSafeArea

```luau
ScreenGui.ClipToDeviceSafeArea: boolean = true
```

- Tags: Read capabilities: UI

Whether to clip the contents of this [`ScreenGui`](https://rapi.sleaze.dev/classes/ScreenGui.md) to the device's safe area.

### SafeAreaCompatibility

```luau
ScreenGui.SafeAreaCompatibility: Enum.SafeAreaCompatibility = Enum.SafeAreaCompatibility.FullscreenExtension
```

- Tags: Read capabilities: UI

Specifies whether automatic UI compatibility transformations are applied to descendant "fullscreen" `GuiObjects` on displays with screen cutouts.

### ScreenInsets

```luau
ScreenGui.ScreenInsets: Enum.ScreenInsets = Enum.ScreenInsets.CoreUISafeInsets
```

- Tags: Read capabilities: UI

Controls the safe area insets that are applied to the contents of the [`ScreenGui`](https://rapi.sleaze.dev/classes/ScreenGui.md).

### OnTopOfCoreBlur

```luau
ScreenGui.OnTopOfCoreBlur: boolean = false
```

- Tags: Hidden, Roblox script security, Read capabilities: UI

### DisplayOrder

```luau
ScreenGui.DisplayOrder: number = 0
```

- Tags: Read capabilities: UI

Controls the Z-index order in which multiple [`ScreenGui`](https://rapi.sleaze.dev/classes/ScreenGui.md) containers are drawn.

### IgnoreGuiInset

```luau
ScreenGui.IgnoreGuiInset: boolean = false
```

- Tags: Not replicated, Read capabilities: UI, Load only

Determines whether the [`ScreenGui`](https://rapi.sleaze.dev/classes/ScreenGui.md) overflows into the range of Roblox's core UI elements.

### IgnoresTitleBarReservation

```luau
ScreenGui.IgnoresTitleBarReservation: boolean = false
```

- Tags: Hidden, Roblox script security, Read capabilities: UI

## Inherited members

- From [LayerCollector](https://rapi.sleaze.dev/classes/LayerCollector.md): `Enabled`, `ResetOnSpawn`, `TabKeyboardNavigation`, `ZIndexBehavior`, `GetGuiObjectsAtPosition`, `GetLayoutNodeTree`
- From [GuiBase2d](https://rapi.sleaze.dev/classes/GuiBase2d.md): `AbsolutePosition`, `AbsoluteRotation`, `AbsoluteSize`, `ActiveQueryNames`, `ReplicatedInsertionOrder`, `ClippedRect`, `IsNotOccluded`, `RawRect2D`, `TotalGroupScale`, `AutoLocalize`, `RootLocalizationTable`, `Localize`, `SelectionBehaviorDown`, `SelectionBehaviorLeft`, `SelectionBehaviorRight`, `SelectionBehaviorUp`, `SelectionGroup`, `SelectionChanged`
- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
