Class · inherits LayerCollector
SurfaceGuiBase
Base class for containers that render GuiObjects onto a face
of a BasePart in the 3D world.
About SurfaceGuiBase
SurfaceGuiBase is the LayerCollector base class for containers
that render their GuiObject descendants onto a face of a
BasePart in the 3D world. SurfaceGui and AdGui inherit
from it.
The target part is set through the Adornee
property; if no adornee is specified, the container renders on its parent when
that parent is a BasePart. The Face
property selects which surface of the part the UI is projected onto.
Properties 3
Active
: booleanDetermines whether theSurfaceGuisinks user input;trueby default.This property determines whether the
SurfaceGuiwill sink input, for example if the parent orAdorneepart contains aClickDetectorclass likeDragDetector.Note that interactive UI elements like
ImageButtonsandTextButtonsinside aSurfaceGuiwill only receive user input if they are parented to thePlayerGui(theSurfaceGui.Adorneeeproperty can be used to target a part in the 3D world while theSurfaceGuiitself remains in thePlayerGui). Additionally, the part'sCanQueryproperty must betruefor the interactive UI element to receive input.Adornee
: InstanceBaseParton which to apply theSurfaceGui, overriding the default parent association.Face
: NormalIdNormalIdface upon which to apply theSurfaceGui.NormalIdface of theSurfaceGuiparent (or itsAdornee) upon which to apply theSurfaceGui.
SurfaceGuiBase also has every member of LayerCollector. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.