Hi,
I was in a spesific case of making the UI design and testing on the Device Simulator, which makes everything easier. The only thing I wanted to do that the simulator does not do right now is to fix the UI aspects in “safe zones”. When I enable safe zones for my project;
Android - Render Outside Safe Zone
iOS - Status Bar Not Hidden
I want my device simulator to fix its corners.


Basicly, this is my current case;

I want that UI image to move inside the safe zone, which it will do correctly in a build.

Hello! Device Simulator does not currently support “Render Outside Safe Zone” and “Status Bar Not Hidden”. We already have a bug report submitted for this issue. You can track the status of that bug here.
However, these two options do not contain the UI inside the safe area. In case of Android the option will show black bars outside of safe area, which of course might be what you are looking for.
But in case you want to keep rendering outside of the notch, but contain UI inside of the safe area, you should adjust the size of your UI container to fit inside the safe area. You can query the save area by reading Screen.safeArea.
Unity does not have an automatic way to keep UI inside of the safe area. There are asset store packages that can do that, like this one Safe Area Helper | GUI Tools | Unity Asset Store.
1 Like