Looks like the resize that does the safe zone update is done before the orientation is updated. I suggested swapping the order to licensee in the UDN ticket and it worked for him. This should be tested more and fixed:
A resize should be handled in FAndroidApplication::PollGameDeviceState() when bWindowSizeChanged is set by the event handler. FDisplayMetrics::RebuildDisplayMetrics sets up the safe zones. I see that HandleDeviceOrientation(); happens after this so moving it before the bWindowSizeChanged() may help here (I believe it didn't get the changed orientation used to set the SafeZone values).
Set up project allowing full rotation options for Android
Make a UMG layout with button in area that would be in safe zone in landscape using a safe zone container.
Run on device in portrait. Switch to landscape and see if button moved.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-229699 in the post.
0 |
Component | UE - Platform - Mobile |
---|---|
Affects Versions | 5.5 |
Target Fix | 5.6 |
Created | Nov 5, 2024 |
---|---|
Updated | Nov 20, 2024 |