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"

[BUG] DPI scaling on iPhone 4S seems to be incorrect

UMG's DPI scale for the iPhone 4S' resolution of 640x960 defaults to 0.59. This looks fine in the editor, but on the actual device the scaling is off by quite a large margin. After playing around with the settings, a DPI scale of 0.29 seemed to give the correct results on the device, but looked completely wrong in the editor, and changing the DPI curve in that way threw out the scaling of all the other devices we have. We don't have any other 640x960 devices to test on, but running the game on PC in a 640x960 window gives different results to the 4S, so it looks like there might be something weird about that device.

I could only find one previous Question on here that seemed to raise this issue, and it was resolved due to a lack of response from the original poster.

Product Version: UE 4.9
more ▼

asked Sep 29 '15 at 11:03 AM in Bug Reports

avatar image

37 3 10 17

avatar image Rudy Q ♦♦ STAFF Sep 29 '15 at 02:20 PM

Hello GiraffeCat

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?

  2. If so, could you provide a detailed set of steps to reproduce this issue on our end?

  3. Could you provide screen shots of any blueprints that may be involved with this issue?

  4. Could you provide the exact OS that is being run on the device?

  5. To clarify, you are having issue with scaling widgets in the viewport between devices?

If you are having issues with your widgets scaling to fit the current viewport I have a workaround that may be viable depending on your needs so that you can continue to advance in your project while we work to narrow down the issue.


  1. Create a new widget blueprint and name it "Holder"

  2. Place the widget that you would like displayed inside of "Holder" via the user created section

  3. Wrap the widget to be displayed within a Scale box

  4. Set the Scale box's anchors to full screen

avatar image GiraffeCat Sep 30 '15 at 10:20 AM

Hi Rudy,

I was able to reproduce this issue in one of the Example projects, Rolling (Blueprint). I basically just created the project, made a UI widget with an anchored image and a border around it, a button with text and some text on its own, and then just pushed it over the top of the game screen. Here's what it looks like on PC: PC And on iPhone 4S: iPhone 4S I've also attached three screenshots of the Widget, showing the various elements.

To address the rest of your points:

  1. The OS version is 8.3.

  2. If the widgets are anchored at their four corners, they display correctly. But the font size is much larger than it should be, and widgets that are anchored in one corner are displayed much larger as well. In my other project, there was also a case of a scroll-box full of items that are showing as square on PC, but stretched horizontally on iPhone, presumably for the same reason (It's trying to draw them larger than hey should be; in this case, the Scroll Box is limiting the vertical size, but not the horizontal).

Hope this helps! Let me know if you have any other questions.

[3]: /storage/temp/60875-ui-editor3.jpg

ui-pc.png (485.7 kB)
ui-iphone4s.png (383.2 kB)
ui-editor1.jpg (413.0 kB)
ui-editor2.jpg (383.4 kB)
ui-editor3.jpg (400.2 kB)
avatar image Rudy Q ♦♦ STAFF Sep 30 '15 at 02:50 PM

Hello GiraffeCat

Additional questions:

  1. Could you provide the project that was used to reproduce this issue on your end?

  2. Have you tested this issue on any other devices?

avatar image GiraffeCat Oct 01 '15 at 08:40 AM

Hi Rudy,

The project files are here. I also uploaded the .ipa that I built, in case that is useful.

We've tested the issue on a number of formats. Primarily a Samsung Galaxy Nexus (1280x720), an LG G3 (2560x1440), an iPad 3 (2048x1536) and a Motorola Moto X 2nd Gen (1920x1080), all of which display everything as intended. We're also running a closed beta test at the moment on about 8-10 different devices, and no-one has mentioned any issues with the UI scaling.

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

2 answers: sort voted first

Hello GiraffeCat,

We were able to reproduce this issue on our end. I have written up a report (UE-21815) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

more ▼

answered Oct 05 '15 at 08:53 PM

avatar image

Rudy Q ♦♦ STAFF
47.2k 545 132 525

avatar image pedrodacruz Dec 20 '15 at 12:22 AM

https://answers.unrealengine.com/questions/341162/why-hud-is-odd-on-iphone-4s-after-49-version.html I'm facing a problem really similiar to this on 4.10 version... wasn't this issue solved yet?

avatar image Rudy Q ♦♦ STAFF Dec 21 '15 at 02:00 PM

Hello pedrodacruz,

If Josh's solution does not help resolve the issue that you are seeing, this may mean that the issue that you are experiencing is separate from the one that is mentioned in this thread.

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

The IPhone4S, by default, will run with a ContentScaleFactor of 1.0, which means that it is running at non-retina, or 320x480, NOT 640x960.

Your DPI scale curve doesn't go down to 320. Try adjusting your curve, and it should work.

Or, try Windows at 320x480 :) Or set your DeviceProfiles to set r.ContentScaleFactor to 2 for the base IOS device to run at retina resolution (but then frame rate will be an issue).


more ▼

answered Oct 14 '15 at 05:54 PM

avatar image

joshbadams STAFF
1.3k 19 7 46

avatar image pedrodacruz Dec 16 '15 at 10:45 PM

Can you please make a kind of tutorial?

(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