Is it possible to detect the orientation of a mobile device in a blueprint?

Is it possible to tell which way up a device is being held, I.e portrait / landscape? I’m wondering if I can utilise both orientations for a game, for example show the environment when in landscape, and the inventory when in portrait?

I suppose another question could be - is it possible to disable a devices automatic screen rotation within the game, and use the tilt values to determine its orientation?

That would be great, thanks Steve!

Hey OnePunchPete,

Currently we detect the device screen orientation on a hardware level that is not exposed to blueprints by default. I’m going to file a feature request for the team to look into exposing that information, hopefully we can make that available soon.

Thanks!

-Steve

Can someone point me to where it is in code so I can expose it via blueprint for my project. I really need this functionality!

any update on this? Is there a Jira ticket link we can vote on and see what is the planned engine version?

There is a Get Device Orientation, but it always return unknown to me.

I was looking through the code for this, its only implemented on iOS.