學習
引擎類別
StarterGui
無法建立
服務

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡



API 參考
屬性
ProcessUserInput
隱藏
未複製
外掛程式安全性
平行讀取
功能: UI
StarterGui.ProcessUserInput:boolean

ResetPlayerGuiOnSpawn
已棄用

RtlTextSupport
無法建立指令碼
平行讀取
功能: UI
StarterGui.RtlTextSupport:Enum.RtlTextSupport

ScreenOrientation
平行讀取
功能: UI
StarterGui.ScreenOrientation:Enum.ScreenOrientation

ShowDevelopmentGui
平行讀取
功能: UI
StarterGui.ShowDevelopmentGui:boolean

VirtualCursorMode
無法建立指令碼
平行讀取
功能: UI
StarterGui.VirtualCursorMode:Enum.VirtualCursorMode

方法
GetCore
暫停
功能: UI
StarterGui:GetCore(parameterName:string):Variant
參數
parameterName:string
返回
Variant

GetCoreGuiEnabled
功能: UI
StarterGui:GetCoreGuiEnabled(coreGuiType:Enum.CoreGuiType):boolean
參數
coreGuiType:Enum.CoreGuiType
返回
範例程式碼
檢查 Core GUI 是否啟用
local StarterGui = game:GetService("StarterGui")
print(StarterGui:GetCoreGuiEnabled("PlayerList"))

SetCore
功能: UI
StarterGui:SetCore(
parameterName:string, value:Variant
):()
參數
parameterName:string
value:Variant
返回
()
範例程式碼
StarterGui 設定核心 GUI
-- 設定 StarterGui 的核心屬性
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("AvatarContextMenuTheme", {
BackgroundImage = "",
BackgroundTransparency = 0.5,
BackgroundColor = Color3.fromRGB(111, 145, 242),
NameTagColor = Color3.fromRGB(0, 0, 200),
NameUnderlineColor = Color3.fromRGB(213, 233, 255),
ButtonFrameColor = Color3.fromRGB(15, 24, 65),
ButtonFrameTransparency = 0.2,
ButtonUnderlineColor = Color3.fromRGB(213, 233, 255),
Font = Enum.Font.SciFi,
})

SetCoreGuiEnabled
功能: UI
StarterGui:SetCoreGuiEnabled(
coreGuiType:Enum.CoreGuiType, enabled:boolean
):()
參數
coreGuiType:Enum.CoreGuiType
enabled:boolean
返回
()

©2026 Roblox Corporation、Roblox、Roblox 標誌及 Powering Imagination 是我們在美國及其他國家地區的部分註冊與未註冊商標。