PlayerGui

사용되지 않는 항목 표시
만들 수 없음
플레이어 복제됨

The PlayerGui object is a container that holds a player's user GUI. If a ScreenGui is a descendant of a PlayerGui, then any GuiObject inside of the ScreenGui will be drawn to the player's screen. Any LocalScript will run as soon as it is inserted into a PlayerGui.

When a player first joins a game, their PlayerGui is automatically inserted into their Player object. When the player's Player.Character spawns for the first time all of the contents of StarterGui are automatically copied into the player's PlayerGui. Note that if Players.CharacterAutoLoads is set to false the character will not spawn and StarterGui contents will not be copied until Player:LoadCharacter() is called. If StarterGui.ResetPlayerGuiOnSpawn is set to true then every time the player's character respawns all of the contents of that player's PlayerGui is cleared and replaced with the contents of StarterGui.


-- Accessing PlayerGui from a LocalScript:
game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')

요약

속성

메서드

메서드BasePlayerGui에서 상속되었습니다

속성

CurrentScreenOrientation

읽기 전용
복제되지 않음
병렬 읽기

Describes the user's current screen orientation.

ScreenOrientation

병렬 읽기

Sets the preferred screen orientation mode for this user, if the user is on a mobile device.

SelectionImageObject

병렬 읽기

Overrides the default selection adornment (used for gamepads). For best results, this should point to a GuiObject.

메서드

이벤트