# I want to use button to change orientation  on mobile phone in game.

**URL:** <https://forums.unrealengine.com/t/i-want-to-use-button-to-change-orientation-on-mobile-phone-in-game/145331>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [June 8, 2020, 3:30am UTC](https://forums.unrealengine.com/t/i-want-to-use-button-to-change-orientation-on-mobile-phone-in-game/145331 "2020-06-08T03:30:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KGTyrael](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KGTyrael](https://forums.unrealengine.com/u/KGTyrael)\
**Post date:** [June 8, 2020, 3:30am UTC](https://forums.unrealengine.com/t/i-want-to-use-button-to-change-orientation-on-mobile-phone-in-game/145331/1 "2020-06-08T03:30:17Z")

</div>

I want to use button to change orientation on mobile phone in game. And I have tried many ways in cpp, such as the FAndroidMisc::SetDeviceOrientation in androidApplication.cpp, but it doesn’t work.

I want to know where I can find the functions which are really work in cpp.

Thanks.

---

<div class="post-metadata">

**Author:** ![KGTyrael](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KGTyrael](https://forums.unrealengine.com/u/KGTyrael)\
**Post date:** [July 6, 2020, 9:06am UTC](https://forums.unrealengine.com/t/i-want-to-use-button-to-change-orientation-on-mobile-phone-in-game/145331/3 "2020-07-06T09:06:39Z")

</div>

Thank you～

---

<div class="post-metadata">

**Author:** ![JayChang-zhe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JayChang-zhe](https://forums.unrealengine.com/u/JayChang-zhe)\
**Post date:** [April 6, 2022, 3:08am UTC](https://forums.unrealengine.com/t/i-want-to-use-button-to-change-orientation-on-mobile-phone-in-game/145331/4 "2022-04-06T03:08:53Z")

</div>

Is there answer about this?
