# GuiService(ロブロックス クラス)
> Offers numerous properties and methods for working with Class.GuiObject|GuiObjects, player preferences, and other UI‑related tasks.
- URL:https://roblox.minecraft-okinawa.com/reference/classes/GuiService/
- 公式:https://create.roblox.com/docs/reference/engine/classes/GuiService
- 受け継いでいるクラス:Instance
## プロパティ
- `GuiService.AutoSelectGuiEnabled: boolean`:If activated, the Select button on a gamepad or Backslash will automatically set a GUI as the selected object.
- `GuiService.GuiNavigationEnabled: boolean`:Used to enable and disable the default controller GUI navigation.
- `GuiService.MenuIsOpen: boolean`:Returns true if any menu of CoreGui is open.
- `GuiService.PreferredTextSize: PreferredTextSize`:Gets the player's preferred text size as an PreferredTextSize value.
- `GuiService.SelectedObject: GuiObject`:Sets the GuiObject currently being focused on by the GUI navigator.
- `GuiService.TopbarInset: Rect`:Used to determine the absolute size and position of unobstructed area within top bar space.
- `GuiService.TouchControlsEnabled: boolean`:Used to enable and disable touch controls and touch control display UI. Defaults to true.
- `GuiService.ViewportDisplaySize: DisplaySize`:Read-only property which represents the physical rendering size of the viewport.
## メソッド
- `GuiService:CloseInspectMenu(): ()`:Closes the avatar inspection menu, if open.
- `GuiService:DismissNotification(notificationId: string): boolean`:Dismisses a notification previously shown by Class.GuiService:SendNotification()|SendNotification().
- `GuiService:GetEmotesMenuOpen(): boolean`:Checks if the player emotes menu is open.
- `GuiService:GetGameplayPausedNotificationEnabled(): boolean`:Returns whether or not the Player.GameplayPaused notification has been disabled.
- `GuiService:GetGuiInset(): Tuple`:Returns two Vector2 values representing the inset of user GUIs in pixels, from the top‑left corner of the screen and the bottom‑right corner of the screen respectively.
- `GuiService:GetInsetArea(screenInsets: ScreenInsets): Rect`:Takes an ScreenInsets value and returns a Rect describing the inset region, relative to the Enum.ScreenInsets.CoreUISafeInsets|CoreUISafeInsets area.
- `GuiService:GetInspectMenuEnabled(): boolean`:Returns whether the avatar inspection menu is enabled.
- `GuiService:InspectPlayerFromHumanoidDescription(humanoidDescription: Instance, name: string): ()`:Allows the avatar inspection menu to appear showing the assets listed in a HumanoidDescription object.
- `GuiService:InspectPlayerFromUserId(userId: User): ()`:Allows the avatar inspection menu to appear showing the user that has the given Class.Player.UserId|UserId.
- `GuiService:Select(selectionParent: Instance): ()`:Sets GuiService.SelectedObject to a child of a provided instance that is the PlayerGui or its descendants.
- `GuiService:SendNotification(notificationInfo: Dictionary): string`:Displays a notification described by notificationInfo and returns a unique identifier for it.
- `GuiService:SetEmotesMenuOpen(isOpen: boolean): ()`:Opens or closes the player emotes menu.
- `GuiService:SetGameplayPausedNotificationEnabled(enabled: boolean): ()`:Lets you disable the built-in notification when a player's gameplay is paused.
- `GuiService:SetInspectMenuEnabled(enabled: boolean): ()`:Allows you to enable or disable the avatar inspection menu.
## イベント
- `GuiService.MenuClosed()`:Fires when the user **closes** the Roblox CoreGui escape menu.
- `GuiService.MenuOpened()`:Fires when the user **opens** the Roblox CoreGui escape menu.
英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。
執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)