Hello, if you can help me?
I have two widgets, 1 (Main Menu), 2 (Registration Screen). I want to set the main menu as: LANDSCAPE and the Registration screen as: PORTRAIT
I need to know how to do this, it’s very important to me, Any help will be welcome.
Yes, I have done this, but however, when I open this in android, the menu is in normal landscape mode, however, the signup screen is deformed with landscape resolution and not portrait
This is going to be a little bit complicated as unreal engine 4 does not support orientation change via blueprint by default. You will need the Mobile Utils plugin by gameDNA
NOTE - This code is not perfect. I have been trying to extend android functionality using this plugin however the code is not refined. Follow these instructions to the last letter. I am not that good with C++ yet, you might have to change some code according to your need here and there.
This was done in quite a rush and I never got back to it.
Find the file MobileUtils_APL in that and add this code -
Ok, I have checked this again. It works, every time you call this function it will change your orientation. Maybe, you can customize it to have more control over which orientation you want (Like sensor). A lot of cleaning work needs to be done as it is amateurish One thing that I forgot to mention was the imports, your imports in the APL file should look like this -