GuiServiceクラス
ひとことで言うと
GuiServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Offers numerous properties and methods for working with Class.GuiObject|GuiObjects, player preferences, and other UI‑related tasks.
クラスの関係
プロパティ(8)
| 名前と書き方 | 説明 |
|---|---|
AutoSelectGuiEnabledGuiService.AutoSelectGuiEnabled: boolean | If activated, the <kbd>Select</kbd> button on a gamepad or <kbd>Backslash</kbd> will automatically set a GUI as the selected object. |
GuiNavigationEnabledGuiService.GuiNavigationEnabled: boolean | Used to enable and disable the default controller GUI navigation. |
MenuIsOpenGuiService.MenuIsOpen: boolean | Returns true if any menu of CoreGui is open. |
PreferredTextSizeGuiService.PreferredTextSize: PreferredTextSize | Gets the player's preferred text size as an PreferredTextSize value. |
SelectedObjectGuiService.SelectedObject: GuiObject | Sets the GuiObject currently being focused on by the GUI navigator. |
TopbarInsetGuiService.TopbarInset: Rect | Used to determine the absolute size and position of unobstructed area within top bar space. |
TouchControlsEnabledGuiService.TouchControlsEnabled: boolean | Used to enable and disable touch controls and touch control display UI. Defaults to true. |
ViewportDisplaySizeGuiService.ViewportDisplaySize: DisplaySize | Read-only property which represents the physical rendering size of the viewport. |
メソッド(14)
| 名前と書き方 | 説明 |
|---|---|
CloseInspectMenuGuiService:CloseInspectMenu(): () | Closes the avatar inspection menu, if open. |
DismissNotificationGuiService:DismissNotification(notificationId: string): boolean | Dismisses a notification previously shown by Class.GuiService:SendNotification()|SendNotification(). |
GetEmotesMenuOpenGuiService:GetEmotesMenuOpen(): boolean | Checks if the player emotes menu is open. |
GetGameplayPausedNotificationEnabledGuiService:GetGameplayPausedNotificationEnabled(): boolean | Returns whether or not the Player.GameplayPaused notification has been disabled. |
GetGuiInsetGuiService: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. |
GetInsetAreaGuiService:GetInsetArea(screenInsets: ScreenInsets): Rect | Takes an ScreenInsets value and returns a Rect describing the inset region, relative to the Enum.ScreenInsets.CoreUISafeInsets|CoreUISafeInsets area. |
GetInspectMenuEnabledGuiService:GetInspectMenuEnabled(): boolean | Returns whether the avatar inspection menu is enabled. |
InspectPlayerFromHumanoidDescriptionGuiService:InspectPlayerFromHumanoidDescription(humanoidDescription: Instance, name: string): () | Allows the avatar inspection menu to appear showing the assets listed in a HumanoidDescription object. |
InspectPlayerFromUserIdGuiService:InspectPlayerFromUserId(userId: User): () | Allows the avatar inspection menu to appear showing the user that has the given Class.Player.UserId|UserId. |
SelectGuiService:Select(selectionParent: Instance): () | Sets GuiService.SelectedObject to a child of a provided instance that is the PlayerGui or its descendants. |
SendNotificationGuiService:SendNotification(notificationInfo: Dictionary): string | Displays a notification described by notificationInfo and returns a unique identifier for it. |
SetEmotesMenuOpenGuiService:SetEmotesMenuOpen(isOpen: boolean): () | Opens or closes the player emotes menu. |
SetGameplayPausedNotificationEnabledGuiService:SetGameplayPausedNotificationEnabled(enabled: boolean): () | Lets you disable the built-in notification when a player's gameplay is paused. |
SetInspectMenuEnabledGuiService:SetInspectMenuEnabled(enabled: boolean): () | Allows you to enable or disable the avatar inspection menu. |
イベント(2)
| 名前と書き方 | 説明 |
|---|---|
MenuClosedGuiService.MenuClosed() | Fires when the user **closes** the Roblox CoreGui escape menu. |
MenuOpenedGuiService.MenuOpened() | Fires when the user **opens** the Roblox CoreGui escape menu. |
受け継いでいるメンバー
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・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・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(GuiService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。