ScreenshotHud

非推奨を表示
作成できません
複製されていません

The ScreenshotHud is a 2D user interface that allows users to capture and save screenshots to their local device. It consists of the following UI elements:

  • An overlay containing the experience name and Roblox branding. These remain on screen when a screenshot is taken, although the experience name can be disabled through the ScreenshotHud.ExperienceNameOverlayEnabled property.
  • A camera button that hides all UI except for the overlay and takes a screenshot.
  • A close button that closes the ScreenshotHud.

コードサンプル

LocalScript

local GuiService = game:GetService("GuiService")
local screenshotHud = GuiService:WaitForChild("ScreenshotHud")
screenshotHud.ExperienceNameOverlayEnabled = true
screenshotHud.OverlayFont = Enum.Font.GothamMedium
screenshotHud.Visible = true

概要

プロパティ

プロパティ

CameraButtonIcon

並列読み取り

Asset ID of the icon used for the camera button.

CameraButtonPosition

並列読み取り

Screen location of the camera button.

CloseButtonPosition

並列読み取り

Screen location of the close button.

CloseWhenScreenshotTaken

並列読み取り

Determines whether the ScreenshotHud closes automatically when a screenshot is taken.

ExperienceNameOverlayEnabled

並列読み取り

Determines whether the experience name in the overlay is enabled.

HideCoreGuiForCaptures

並列読み取り

HidePlayerGuiForCaptures

並列読み取り

OverlayFont

並列読み取り

The Font used for the experience name in the overlay.

UsernameOverlayEnabled

並列読み取り

Currently disabled with no effect.

Visible

並列読み取り

Determines whether the ScreenshotHud is visible.

方法

イベント