Canvas Group component
You can add a Canvas Group component to any UI object. Attaching it to a UI object will let you adjust the specific properties of the object as well as all of its children with a single component rather than having to adjust these properties for each of the UI elements.
You can add a Canvas Group component to any UI object by selecting Add Component | Layout | Canvas Group (you can also just search for Canvas Group) from the UI object›s Inspector.
Figure 6.34: The Canvas Group component
You can adjust the following properties using a Canvas Group component:
- Alpha: This is the transparency of the UI objects within the Canvas Group. The number is between
0
and1
and represents a percentage of opaqueness;0
is completely transparent, while1
is completely opaque. - Interactable: This setting determines whether or not the objects within the group can accept input.
- Blocks Raycasts: This setting determines if the...