Skip to content

Components

CanvasGroup

Fades, dims or shields a whole subtree at once: one alpha multiplies every colour under it, one flag makes it inert without hiding it, and another swallows clicks meant for whatever is behind it. Goes under a Canvas.

On this page

Add it

+ Add node โ†’ Fade Group creates a node with it already on. Already have a node for it? Add component โ†’ CanvasGroupComponent.

From a script

A script on the same node writes these fields by name. CanvasGroupComponent is the name to pass.

rgs
set_number("CanvasGroupComponent", "alpha", 1.0);
set_flag("CanvasGroupComponent", "interactable", true);
set_flag("CanvasGroupComponent", "blocks_input", false);
set_flag("CanvasGroupComponent", "ignore_parent_groups", false);

Fields

FieldScript nameKindDefaultWhat it does
Alphaalphanumber, 0 to 1, step 0.011Multiplied into every colour the subtree draws.
InteractableinteractablecheckboxonWhether widgets in the subtree answer pointers and the focus ring.
Blocks Inputblocks_inputcheckboxoffWhether this group's box stops pointers reaching what is behind it.
Ignore Parent Groupsignore_parent_groupscheckboxoffWhether groups above this one are ignored entirely โ€” alpha, dimming and all.