Search Unity

Bug iOS screen rotation animation playing despite the option for it being off

Discussion in 'iOS and tvOS' started by Project-NSX, Feb 20, 2024.

  1. Project-NSX

    Project-NSX

    Joined:
    Apr 11, 2019
    Posts:
    25
    Hello,

    I've encountered an issue where the screen rotation animation for iOS is playing (and distorting several UI elements in the process) on builds, despite the option for this being set to off.
    The app is forced portrait and at a point in the app, the user is prompted to rotate their device. Upon device rotation, the ScreenOrientation is set to landscape. This all functions as expected, except for the screen rotation animation playing for builds on iPhone 12s. I'm pretty sure this doesn't occur on the iPad we use to test the project though.

    Does anyone have any insight into this?

    Thanks for reading!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,050
    Which Unity version is used?
     
  3. Project-NSX

    Project-NSX

    Joined:
    Apr 11, 2019
    Posts:
    25
    Hi sorry I forgot to include that. Unity 2022.3.14f1
     
    Last edited: Feb 21, 2024
  4. baokhanhit

    baokhanhit

    Joined:
    Feb 26, 2017
    Posts:
    4
    having the same for a while, I did a work around hack by check the screen orientation in update loop, whenver the orientation switched to portrait, I switch it back to landscape. Would be nice if we have a proper fix from Unity
     
  5. Project-NSX

    Project-NSX

    Joined:
    Apr 11, 2019
    Posts:
    25
    Think we're just gonna have to disable UI elements instead of fading them out tbh, just to prevent distortions caused by the animation
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,050
    File a bug report for it