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"

Get the device resolution

Is there a way to acquire the mobile device resolution using blueprints?

Product Version: Not Selected
more ▼

asked Nov 19 '14 at 12:57 AM in Blueprint Scripting

avatar image

21 4 5 6

avatar image trutty Mar 10 '15 at 03:35 PM

Did you figure out a solution so far? I am having the same problem. Looking into the TappyChicken project, they do it with the GetViewportSize node (see image; I just launched the game on mobile and printed out the dimensions - it works). Maybe this helps. However, when I use this node, I only get 0 for the viewport size and I don't know why.

TappyChicken Camera Setup


omg I just realised that the TappyChicken solution works because they use a Delay node with 0.2 seconds before using the GetViewportSize node. Did this in my project as well and now it works. Although this isn't a satisfying solution for me..

avatar image Two-faced Dec 20 '17 at 08:03 AM

HUD is not existed. As well as many classes at begin play timing.

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

3 answers: sort voted first

Have you tried get Viewport size in the player controller? Not sure about mobile but it works on PC

more ▼

answered Nov 19 '14 at 05:40 AM

avatar image

2.1k 104 74 163

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


Get Viewport Size in player controller not work on mobile. If you need get real size of screen resolution, use Event Receive Draw HUD


more ▼

answered Nov 19 '14 at 01:59 PM

avatar image

8.5k 254 42 400

avatar image SpaceKnot Dec 04 '14 at 01:24 AM

I am running into a strange issue. First I am using a kindle fire which has a resolution of 1900x1200. However it is drawing at 1152x720.

I am using Event Receive Draw HUD to create buttons and hit boxes. I am placing them by dividing by 2 as shown in the link. The buttons are drawing using the dimensions 1152x720. However Event Receive Hit Box Release is being triggered when touching the center of the tablet (1900x1200).

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

answered Mar 13 '19 at 09:24 PM

avatar image

26 2 3 5

(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