เรียนรู้
Engine Class
StarterGui
ไม่สามารถสร้าง
บริการ

*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่


สรุป
วิธีการ
GetCore(parameterName: string):Variant
SetCore(parameterName: string,value: Variant):()
SetCoreGuiEnabled(coreGuiType: Enum.CoreGuiType,enabled: boolean):()
สมาชิกที่ได้รับทอด

เอกสารอ้างอิงเกี่ยวกับ 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
ส่งค่ากลับ
()
ตัวอย่างโค้ด
การตั้งค่า 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 เป็นส่วนหนึ่งของเครื่องหมายการค้าที่จดทะเบียน และไม่ได้จดทะเบียนของเราในสหรัฐฯ และประเทศอื่นๆ