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.

메서드

이벤트