SurfaceGuiBase
Base class for containers that render GuiObjects onto a face of a BasePart in the 3D world.
| Memory category | Instances |
|---|
Member index 3
Description
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.
History 13
- 731 Change Default of Face from to
- 731 Change Default of Adornee from to
- 731 Change Default of Active from to
- 726 Change Default of Face from to
- 726 Change Default of Adornee from to
- 726 Change Default of Active from to
- 553 Change Default of Face from to
- 553 Change Default of Adornee from to
- 553 Change Default of Active from to
- 540 Add Face
- 540 Add Adornee
- 540 Add Active
- 540 Add SurfaceGuiBase
Members 3
Active
| Type | Default | |
|---|---|---|
| bool | ||
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.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
Adornee
| Type | Default | |
|---|---|---|
| Instance | ||
BasePart on which to apply the SurfaceGui, overriding the default parent association.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
Face
| Type | Default | |
|---|---|---|
| NormalId | ||
NormalId face of the SurfaceGui parent (or its Adornee) upon which to apply the SurfaceGui.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |