Grouping UI elements - adding Canvas Group

Our Panel design is ready. We need to bind the data with the panel and need to control the visibility of all controls when we click on the close button or gaze at the other floors; this is typically how the dialog works.

Instead of controlling each individual child control, we can achieve it by adding a Canvas Group component in Panel. With that, the whole child UI elements can be handled together:

Adding Canvas Group components for Panel

If you have noticed, Alpha value is set to 1. If you set it to 0, the entire Panel, along with all child controls will be hidden, and that's exactly what we are trying to achieve here. Set the Alpha to 0 by default so that it is not visible when the app starts (you can handle that part using the script as well) and tag the panel as DetailsPanel.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.103.219