# CoreGui

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

- Inherits from, nearest first: [BasePlayerGui](https://rapi.sleaze.dev/classes/BasePlayerGui.md), [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Tags: Not creatable, Not replicated, Service
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/CoreGui/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/CoreGui

The CoreGui is a service used to store Guis created in-game by Roblox for the core user interface found in every game (such as the game menu, the playerlist, the backpack, etc.). It can also be used by `Plugins` in Roblox Studio.

## Properties

### SelectionImageObject

```luau
CoreGui.SelectionImageObject: GuiObject
```

- Tags: Roblox script security, Read capabilities: UI

Overrides the default selection adornment used for gamepad selection in the CoreGui.

### Version

```luau
CoreGui.Version: number
```

- Tags: Read only, Read capabilities: UI, Save only

The current version of the CoreGui. Every time the CoreGui is majorly changed, this number is increased.

## Methods

### SetUserGuiRendering

```luau
CoreGui:SetUserGuiRendering(enabled: boolean, guiAdornee: Instance, faceId: Enum.NormalId, horizontalCurvature: number? = 0)
```

- Tags: Roblox script security, Capabilities: UI

### TakeScreenshot

```luau
CoreGui:TakeScreenshot()
```

- Tags: Roblox script security, Capabilities: UI

### ToggleRecording

```luau
CoreGui:ToggleRecording()
```

- Tags: Roblox script security, Capabilities: UI

## Events

### UserGuiRenderingChanged

```luau
CoreGui.UserGuiRenderingChanged: RBXScriptSignal<(enabled: boolean, guiAdornee: Instance, faceId: Enum.NormalId, horizontalCurvature: number)>
```

- Tags: Roblox script security, Capabilities: UI

## Inherited members

- From [BasePlayerGui](https://rapi.sleaze.dev/classes/BasePlayerGui.md): `GetGuiObjectsAtPosition`, `GetGuiObjectsInCircle`
- 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`
