Skip to content

Class · inherits GuiObject

CanvasGroup

Official docs ↗

Blends descendants as a flattened group with an optional color/transparency modification.

About CanvasGroup

CanvasGroup renders its descendants as a flattened group with GroupColor3 and GroupTransparency optionally applied to the rendered result. UIComponent visual modifiers such as UICorner and UIGradient under a CanvasGroup will also apply to the whole group. Note that CanvasGroup always has ClipsDescendants set to true and all descendants will be clipped outside the group's bounds.

Important Notes

  • Descendants of CanvasGroup will be rendered as a flattened texture only when the ancestor LayerCollector has its ZIndexBehavior set to ZIndexBehavior.Sibling.
  • CanvasGroup consumes extra texture memory. The quality of the texture and total memory usage is limited by the QualityLevel of the client. When exceeding the memory cap, CanvasGroup will render as a blank texture.
  • It's recommended to use CanvasGroup with static sizes, otherwise a new texture would need to be created to accommodate new sizes.

Properties 2

  • GroupColor3: Color3Color tint that applies to the rendered group.
  • GroupTransparency: floatTransparency that applies to the rendered group.

CanvasGroup also has every member of GuiObject. 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.