Change screen orientation on mobiles immediately, no animation.

i use the code line below to change the device screen orientation:

Screen.orientation = ScreenOrientation.Portrait;

The code is being executed, but the Android system add an inertia animation to it.

Is there a way to get this command executed immediately, no delay, no inertia, no lag, no animation?

On iOS theres the PlayerSettings ‘use animated autorotation’. Maybe that’s enough.

On Android it seems to be a operating system feature and can’t be done at least from unity. Maybe not at all