x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: Not Selected
Tags:
more ▼

asked May 14 '14 at 05:18 PM in Blueprint Scripting

avatar image

OnePunchPete
176 8 9 224

avatar image OnePunchPete May 14 '14 at 05:20 PM

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?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered May 14 '14 at 08:20 PM

avatar image

Steve Allison STAFF
4.3k 123 58 209

avatar image OnePunchPete May 14 '14 at 08:34 PM

That would be great, thanks Steve!

avatar image jeffvoigt Mar 04 '15 at 04:37 PM

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!

avatar image aussieburger Apr 26 '18 at 08:55 AM

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

avatar image drpsyko Feb 10 '19 at 04:25 AM

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

avatar image cabrown242 May 17 '19 at 09:17 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question