This script generates a “SafeArea-Panel” that adjusts its boundaries according to the safe area of the screen.
- Create a Canvas.
- Create a Panel within the Canvas.
- Attach the “SafeAreaRect.cs” script to the Panel.
- Use the ControlEdges parameter to specify which edges should respect the safe area.