CanvasGroup
Apply transparency to a whole group of GUI elements.
CanvasGroup renders its children into a layer and applies one transparency value to the result. Overlapping children fade as a single image instead of showing through each other.
Getting started
local group = Instance.new("CanvasGroup")
group.Size = UDim2.fromScale(1, 1)
group.BackgroundTransparency = 1
group.GroupTransparency = 0.25
group.Parent = screenGuiProperties
| Property | Type | Access | Description |
|---|---|---|---|
GroupTransparency | number | Read/write | Transparency applied to the rendered group, clamped to 0 through 1. |
Notes
GroupTransparency = 0is fully opaque and1is fully invisible.- The group renders its children into an offscreen layer only while transparency is above zero; at full opacity it draws normally.
- Per-child
Transparencyvalues still apply before the group value. - Inherits all
GuiObjectmembers.
See also
Framefor a plain container.GuiObjectfor layout and appearance.
