- Home /
Dynamic change in orientation of Unity Player activity on click
Hi,
I am trying to change the orientation of Unity Player activity using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE). When I tried to do that the screen flickers but the orientation of the activity does not change as it stays in Portrait mode.
In my manifest I have this activity as
( activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" > /activity>
I have wasted a lot of time to do that but couldn't able to accomplish.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613200408im_/https://answers.unity.com/themes/thub/images/avi.jpg)