Class · inherits LayerCollector
BillboardGui
A container for GuiObjects that renders in 3D space facing
the camera.
About BillboardGui
BillboardGui is a container for UI objects to appear in the 3D space
but always face the camera. The container's position is relative to the parent
BasePart or Attachment (or the
Adornee). For BaseParts, the
Position property is used, while for
Attachments, the
WorldPosition property is used.
A billboard's Size property works slightly
differently than GuiObject.Size. While the offset components work
the same, the scale components are used as stud sizes in 3D space.
When creating a size-scaled BillboardGui that contains a
TextLabel, it's useful to enable the label's
TextScaled property so that its text scales along
with the billboard canvas as the camera distance changes.
Note that interactive UI elements like ImageButtons and
TextButtons inside a BillboardGui will only receive
user input if they are parented to the PlayerGui, typically via
placing the BillboardGui inside StarterGui. The
Adornee property can be used to target a part or
attachment in the 3D world while the BillboardGui itself remains in
the PlayerGui.
See In-Experience UI
for a guide on working with BillboardGui containers.
Caching Behavior
To help improve performance, the appearance of a BillboardGui is
cached until one of the following occurs, after which its appearance will be
recomputed on the next rendering frame.
- A descendant is added to or removed from the
BillboardGui. - A property of a descendant of the
BillboardGuichanges. - A property of the
BillboardGuiitself changes.
Properties 16
Active
: booleanControls whether the descendants will receive input events.Controls whether the descendants will receive input events. If the
BillboardGuicontains aGuiButton, that button will become clickable only ifActiveis set totrueon both theBillboardGuiand the button.Note that interactive UI elements like
ImageButtonsandTextButtonsinside aBillboardGuiwill only receive user input if they are parented to thePlayerGui, typically via placing theBillboardGuiinsideStarterGui. TheAdorneeproperty can be used to target a part or attachment in the 3D world while theBillboardGuiitself remains in thePlayerGui.Adornee
: InstanceSets the target part or attachment that theBillboardGuiis positioned relative to.Sets the target
BasePartorAttachmentthat theBillboardGuiis positioned relative to, overriding the parent part or attachment.AlwaysOnTop
: booleanDetermines whether theBillboardGuiwill always be rendered on top of other 3D objects.This property determines whether the
BillboardGuiwill always render on top of other 3D objects.When set to
false(default), theBillboardGuirenders like other 3D content and is occluded by other 3D objects. When set totrue, theBillboardGuialways renders on top of 3D content and the appearance changes significantly:- Colors match how they appear inside a
ScreenGui. - Text may appear sharper on high DPI devices.
LightInfluenceis treated as though it's0.Brightnesshas no effect.
- Colors match how they appear inside a
Brightness
: floatDetermines the factor by which theBillboardGuicontainer's light is scaled whenLightInfluenceis0.This property determines the factor by which the
BillboardGuicontainer's light is scaled whenLightInfluenceis0. By default, this property is1and can be set to any number between0and1000. By modifying this property, the apparent brightness of aBillboardGuican be better matched to its environment. For instance, a video billboard can be brightened inside a dark room by increasingBrightnessto10.Note that
Brightnessis inaccessible in Studio and has no effect when eitherLightInfluenceis1orAlwaysOnTopistrue.ClipsDescendants
: booleanWhether portions ofGuiObjectsthat fall outside of theBillboardGuicanvas borders will be drawn.When set to
true(default), portions ofGuiObjectsthat fall outside of theBillboardGuicanvas borders will not be drawn.Even when this property is
false,GuiObjectsthat are completely outside of the canvas will not render.CurrentDistance
: floatReadOnlyNotReplicatedThe current distance in studs that theBillboardGuiis from the player's camera.The current distance in studs that the
BillboardGuiis from the player's camera. A changed event does not fire for this property unlessDistanceStepis more than0.DistanceStep
: floatNotReplicatedDetermines the sizeCurrentDistanceincrements and decrements in studs as the player's camera moves closer and further from theBillboardGui.Determines the size
CurrentDistanceincrements and decrements in studs as the player's camera moves closer and further from theBillboardGui. The property defaults to0.ExtentsOffset
: Vector3Determines how theBillboardGuiis offset from itsAdornee, relative to theCameraorientation, in units half the dimensions of the model'sCamera-aligned bounding box.This property determines how the
BillboardGuiis offset from itsAdornee, relative to theCameraorientation, in units half the dimensions of the model'sCamera-aligned bounding box.See also
StudsOffsetwhich works similarly but uses stud units, orExtentsOffsetWorldSpacewhich works similarly except the offset orientation is relative to the global axes.ExtentsOffsetWorldSpace
: Vector3Determines how theBillboardGuiis offset from itsAdornee, relative to the global axes, in units half the dimensions of the model's axis-aligned bounding box.This property determines how the
BillboardGuiis offset from itsAdornee, relative to the global axes, in units half the dimensions of the model's axis-aligned bounding box.See also
StudsOffsetwhich works similarly but uses stud units, orExtentsOffsetwhich works similarly except the offset orientation is relative to theCamera.LightInfluence
: floatControls how much theBillboardGuiis influenced by environmental lighting.Controls how much the
BillboardGuiis influenced by environmental lighting, in a range from0to1. Setting this to1means that surrounding lighting has complete control over the appearance, while setting it to0means that the lighting has no effect.MaxDistance
: floatControls how far away theBillboardGuican be displayed before it stops rendering.This property controls how far from the camera the
BillboardGuiwill be displayed before it stops rendering. A value of0orinf(default) means there is no limit and it will render infinitely far away.For
BillboardGuisthat appear outdoors, it's recommended thatMaxDistanceis high enough to ensure that the container's UI is sufficiently small on the screen when it appears or disappears, minimizing the sudden pop‑in/out effect.PlayerToHideFrom
: InstanceUsed by scripts to hide theBillboardGuifrom a specific player.Used by scripts to hide the
BillboardGuifrom a specific player.To hide a
BillboardGuifrom more than one player, place it intoStarterGuiand use a script to set theEnabledproperty according to whether theLocalPlayershould be able to see it. TheAdorneeproperty can be used to attach theBillboardGuito aBasePartorAttachmentin theWorkspace, instead of parenting it.Size
: UDim2Controls the size that theBillboardGuiwill have on screen.Controls the size that the
BillboardGuiwill have on screen. UnlikeGuiObject.Size, the scale components of this property set the billboard's stud size in 3D space.SizeOffset
: Vector2A 2D offset in size-relative units that acts like an anchor point.A 2D offset in size-relative units that acts like an anchor point. This can be used similarly to the
GuiObject.AnchorPointproperty, but the values are different.See also
StudsOffset,StudsOffsetWorldSpace,ExtentsOffset, andExtentsOffsetWorldSpacewhich are offset properties that work in 3D space instead.StudsOffset
: Vector3Determines how theBillboardGuiis offset from itsAdorneein studs, relative to theCameraorientation.This property determines how the
BillboardGuiis offset from itsAdorneein studs, relative to theCameraorientation.See also
StudsOffsetWorldSpacewhich works similarly except the offset orientation is relative to the global axes.StudsOffsetWorldSpace
: Vector3Determines how theBillboardGuiis offset from itsAdorneein studs, relative to the global axes.This property determines how the
BillboardGuiis offset from itsAdorneein studs, relative to the global axes.See also
StudsOffsetwhich works similarly except the offset orientation is relative to theCamera.
BillboardGui 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.