Open Asterune
SurfaceGui

SurfaceGui

Displays an interface on a face of a world-space Part.

Creatable
Instance.new("SurfaceGui")
Inherits
GuiLayerCollectorGuiBase2dGuiBaseInstance
Replication
Standard

Behavior

SurfaceGui displays an interface on a face of a world-space Part.

Summary

Members10
Properties9
Methods1

Properties

Active

SurfaceGui.Active: boolean = true

Whether this interface accepts and consumes input.

Adornee

SurfaceGui.Adornee: Instance? = nil

The Instance used to position or size this world-space interface or adornment.

AlwaysOnTop

SurfaceGui.AlwaysOnTop: boolean = false

Whether the world-space interface renders over occluding geometry.

Brightness

SurfaceGui.Brightness: number = 1

The brightness multiplier applied to the surface interface.

CanvasSize

SurfaceGui.CanvasSize: Vector2 = Vector2.new(800, 600)

The dimensions of the scrollable or surface-rendered canvas.

Enabled

SurfaceGui.Enabled: boolean = true

Whether this interface root and its descendants are displayed.

Face

The Part face on which the surface texture, light, or interface is placed.

LightInfluence

SurfaceGui.LightInfluence: number = 0

The amount of scene lighting applied to the rendered effect.

ResetOnSpawn

SurfaceGui.ResetOnSpawn: boolean = true

Whether this interface is recreated when the player's character respawns.

Methods

GetExecutionGroup

SurfaceGui:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

GuiLayerCollector