学习
引擎类
ScreenshotHud
无法创建
未复制

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处


代码示例
本地脚本
local GuiService = game:GetService("GuiService")
local screenshotHud = GuiService:WaitForChild("ScreenshotHud")
screenshotHud.ExperienceNameOverlayEnabled = true
screenshotHud.OverlayFont = Enum.Font.GothamMedium
screenshotHud.Visible = true

API 参考
属性
CameraButtonIcon
读取并联
功能: UI
ScreenshotHud.CameraButtonIcon:ContentId

CameraButtonPosition
读取并联
功能: UI
ScreenshotHud.CameraButtonPosition:UDim2

CloseButtonPosition
读取并联
功能: UI
ScreenshotHud.CloseButtonPosition:UDim2

CloseWhenScreenshotTaken
读取并联
功能: UI
ScreenshotHud.CloseWhenScreenshotTaken:boolean

ExperienceNameOverlayEnabled
已弃用

HideCoreGuiForCaptures
读取并联
功能: UI
ScreenshotHud.HideCoreGuiForCaptures:boolean

HidePlayerGuiForCaptures
读取并联
功能: UI
ScreenshotHud.HidePlayerGuiForCaptures:boolean

OverlayFont
已弃用

UsernameOverlayEnabled
已弃用

Visible
读取并联
功能: UI
ScreenshotHud.Visible:boolean

©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。