From the course: Cert Prep: Unity Certified Associate Game Developer UI and 2D Games

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Canvas groups

Canvas groups - Unity Tutorial

From the course: Cert Prep: Unity Certified Associate Game Developer UI and 2D Games

Start my 1-month free trial

Canvas groups

- [Instructor] Now in the last video of this chapter, I want to tackle the tricky subject of transparency because it frequently comes up in the world of UI. Let's imagine, for example, that you want to take the entirety of this panel, that is, the button panel, along with the title, and you want to fade this entire panel out, both the panel itself and the text within. Because of how we've set up our hierarchy, making the text a child of the panel, the great thing is I can move the panel around and the text moves with it. We've created our own little self-contained window. But now let's say we want to fade out this panel. Well, if I wanted to do that, one of the ways I might try to do that is to select the panel buttons image and go to the color field and then tweak the alpha. But as I fade out the background the transparency doesn't cascade down to the children. So it ends up becoming this complicated hierarchy of a parent…

Contents