Roblox UtilitiesDevlHub Roblox Documentation

Class

CanvasGroup

Inherits
GuiObject › GuiBase2d › GuiBase › Instance › Object
Memory category
Gui

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

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#

GroupColor3Color3Color tint that applies to the rendered group.ReadSafe
GroupTransparencyfloatTransparency that applies to the rendered group.ReadSafe

GroupColor3: Color3#

ReadSafe

Color tint that applies to the rendered group.

GroupTransparency: float#

ReadSafe

Transparency that applies to the rendered group.

Inherited members#

Inherited from GuiObject 51
Inherited from GuiBase2d 12
Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed