Roblox UtilitiesDevlHub Roblox Documentation

Class

SurfaceGuiBase

NotCreatable
Memory category
Instances
Subclasses
2

Base class for containers that render GuiObjects onto a face of a BasePart in the 3D world.

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#

ActivebooleanDetermines whether the SurfaceGui sinks user input; true by default.ReadSafe
AdorneeInstanceBasePart on which to apply the SurfaceGui, overriding the default parent association.ReadSafe
FaceNormalIdNormalId face upon which to apply the SurfaceGui.ReadSafe

Active: boolean#

ReadSafe

This property determines whether the SurfaceGui will sink input, for example if the parent or Adornee part contains a ClickDetector class like DragDetector.

Note that interactive UI elements like ImageButtons and TextButtons inside a SurfaceGui will only receive user input if they are parented to the PlayerGui (the SurfaceGui.Adorneee property can be used to target a part in the 3D world while the SurfaceGui itself remains in the PlayerGui). Additionally, the part's CanQuery property must be true for the interactive UI element to receive input.

Adornee: Instance#

ReadSafe

BasePart on which to apply the SurfaceGui, overriding the default parent association.

Face: NormalId#

ReadSafe

NormalId face of the SurfaceGui parent (or its Adornee) upon which to apply the SurfaceGui.

Inherited members#

Inherited from LayerCollector 4
Inherited from GuiBase2d 12
Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed

Subclasses 2#