Open Asterune
GuiService

GuiService

Controls interface focus, selection, navigation, and engine UI state.

Service
game:GetService("GuiService")
Inherits
Instance
Replication
Never

Behavior

GuiService controls interface focus, selection, navigation, and engine UI state.

Summary

Members19
Properties6
Methods11
Events2

Properties

AutoSelectGuiEnabled

GuiService.AutoSelectGuiEnabled: boolean = true

Whether the engine automatically selects an interface element when navigation begins.

CoreGuiNavigationEnabled

GuiService.CoreGuiNavigationEnabled: boolean = true

Whether directional navigation can select built-in interfaces.

GuiNavigationEnabled

GuiService.GuiNavigationEnabled: boolean = true

Whether directional interface navigation is enabled.

MenuIsOpen

GuiService.MenuIsOpen: boolean = false

Whether the engine menu is open.

SelectedObject

GuiService.SelectedObject: GuiObject? = nil

The currently selected GuiObject.

TouchControlsEnabled

GuiService.TouchControlsEnabled: boolean = true

Whether the built-in touch controls are enabled.

Methods

AddSelectionParent

GuiService:AddSelectionParent(selectionName: string, selectionParent: GuiObject): ()

Registers a parent whose descendants form a selection group.

AddSelectionTuple

GuiService:AddSelectionTuple(selectionName: string, args: ...GuiObject): ()

Registers an explicit group of selectable interface elements.

GetExecutionGroup

GuiService:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

GetGuiInset

GuiService:GetGuiInset(): (Vector2, Vector2)

Returns the screen insets reserved by the engine interface.

GetScreenResolution

GuiService:GetScreenResolution(): Vector2

Returns the current screen resolution in pixels.

IsTenFootInterface

GuiService:IsTenFootInterface(): boolean

Returns whether the engine uses the large-screen interface mode.

IsWindows

GuiService:IsWindows(): boolean

Returns whether the current platform is Windows.

RemoveSelectionGroup

GuiService:RemoveSelectionGroup(selectionName: string): ()

Removes a registered selection group.

Select

GuiService:Select(selectionParent: Instance): ()

Selects an interface element for navigation.

SetGlobalGuiInset

GuiService:SetGlobalGuiInset(x1: number, y1: number, x2: number, y2: number): ()

Sets the insets reserved for the engine interface.

SetMenuIsOpen

GuiService:SetMenuIsOpen(open: boolean): ()

Opens or closes the engine menu.

Events

MenuClosed

GuiService.MenuClosed: RBXScriptSignal

Fires when the engine menu closes.

MenuOpened

GuiService.MenuOpened: RBXScriptSignal

Fires when the engine menu opens.

Inherited members

Inherited47

Instance