The title is already self-explanatory, so I’ll keep this brief.
When editing the GroupTransparency
property of a CanvasGroup
, if a UIStroke
is parented to the canvas groups (descendants do not have this problem), the UIStrokes transparency will not be changed.
You can reproduce this issue by,
- Creating a
CanvasGroup
, and adding aUIStroke
into it, heres a simple thank you GUI I created;
here’s what the hierarchy looks like:
- Run Studio, and change the
CanvasGroup
sGroupTransparency
Property, here’s what it looks like with theGroupTransparency
property set to 0.9.
As you can see, the UIStroke
inside of the button, which is a Descendant of the CanvasGroup
, transparency was changed. Well the UIStroke
directly parented to the CanvasGroup
transparency was not changed at all.