StarterGuiクラス

クラスサービス(game:GetService("StarterGui")で取り出す)Instance.newでは作れない日本語解説あり

ひとことで言うと

プレイヤーの画面に表示するGUI(ボタンや文字など)を入れておく場所です。ここに入れたものが、プレイヤーが参加したときに各自の画面にコピーされます。

公式の説明(英語):A container for LayerCollector objects to be copied into the PlayerGui of Class.Player|Players. Also provides a range of functions for interacting with the CoreGui.

クラスの関係

受け継いでいるクラス:Object → Instance → BasePlayerGui → StarterGui

プロパティ(5)

名前と書き方説明
ClipsDescendantsSupportsRotation
StarterGui.ClipsDescendantsSupportsRotation: RolloutState
Determines whether the Class.GuiObject.ClipsDescendants|ClipsDescendants property of a GuiObject clips **rotated** descendants.
RtlTextSupport
StarterGui.RtlTextSupport: RtlTextSupport
Controls whether right-to-left (RTL) text layout is enabled for text in Class.GuiObject|GuiObjects throughout the experience.
ScreenOrientation
StarterGui.ScreenOrientation: ScreenOrientation
Sets the default screen orientation mode for users with mobile devices.
ShowDevelopmentGui
StarterGui.ShowDevelopmentGui: boolean
Determines whether the contents of StarterGui is visible in Studio.
VirtualCursorMode
StarterGui.VirtualCursorMode: VirtualCursorMode
Controls whether the gamepad virtual cursor is enabled for navigating Class.GuiObject|GuiObjects with a controller.

メソッド(4)

名前と書き方説明
GetCore
StarterGui:GetCore(parameterName: string): Variant
Returns a variable that has been specified by a Roblox core script.
GetCoreGuiEnabled
StarterGui:GetCoreGuiEnabled(coreGuiType: CoreGuiType): boolean
Returns whether the given CoreGuiTypeis enabled, or if it has been disabled using Class.StarterGui:SetCoreGuiEnabled().
SetCore
StarterGui:SetCore(parameterName: string, value: Variant): ()
Allows you to perform certain interactions with Roblox's core scripts.
SetCoreGuiEnabled
StarterGui:SetCoreGuiEnabled(coreGuiType: CoreGuiType, enabled: boolean): ()
Sets whether the CoreGui element associated with the given CoreGuiType is enabled or disabled.

受け継いでいるメンバー

BasePlayerGui から受け継いでいるもの(1)

GetGuiObjectsAtPosition

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)

ClassName・GetPropertyChangedSignal・IsA・Changed

StarterGuiを使う記事

英語の説明とメンバーの一覧は、Roblox Creator Documentation(StarterGui)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む