# UE5 iOS r.MobileContentScaleFactor getting ignored

**URL:** <https://forums.unrealengine.com/t/ue5-ios-r-mobilecontentscalefactor-getting-ignored/241640>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS\
**Created:** [July 20, 2021, 9:16am UTC](https://forums.unrealengine.com/t/ue5-ios-r-mobilecontentscalefactor-getting-ignored/241640 "2021-07-20T09:16:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bennymoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bennymoo](https://forums.unrealengine.com/u/Bennymoo)\
**Post date:** [July 20, 2021, 9:16am UTC](https://forums.unrealengine.com/t/ue5-ios-r-mobilecontentscalefactor-getting-ignored/241640/1 "2021-07-20T09:16:42Z")

</div>

I’m after some help getting the correct resolution scale when building my project for my iOS device. I get the resolution I am after in 4.26, but when I make a copy of my project and build from 5.0EA2 nothing I have tried seems to get the correct resolution for my iOS device (iPhoneX).

I have added Config/DefaultDeviceProfiles.ini to my project (using the device Profiles Editor window) and set the following CVar for my device: +CVars=r.MobileContentScaleFactor=3

I have also tried (unsucessfully) adding this cvar for all iOS devices within Engine/Config/BaseDeviceProfiles.ini just to see if I could get any update to device resolution at all.

Unfortunately nothing I have tried gets my device to pick up the MobileContentScaleFactor, any help with this would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Pollovaldes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pollovaldes](https://forums.unrealengine.com/u/Pollovaldes)\
**Post date:** [July 23, 2021, 9:21pm UTC](https://forums.unrealengine.com/t/ue5-ios-r-mobilecontentscalefactor-getting-ignored/241640/2 "2021-07-23T21:21:09Z")

</div>

Yes… I also experience that, the property is completely ignored, I have a iPhone 11, and it doesn’t scale to full resolution too, I supposed that is an engine bug, and I hope that it will be soon fix

---

<div class="post-metadata">

**Author:** ![Bennymoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bennymoo](https://forums.unrealengine.com/u/Bennymoo)\
**Post date:** [August 9, 2021, 3:32am UTC](https://forums.unrealengine.com/t/ue5-ios-r-mobilecontentscalefactor-getting-ignored/241640/3 "2021-08-09T03:32:50Z")

</div>

This file Engine/Source/Runtime/ApplicationCore/Private/IOS/IOSView.cpp differs between 4.26 and 5EA. I removed line 277 setting RequestedContentScaleFactor to 1.0, and also the app delegate which runs on the game thread and rebuilt the engine from source - this seems to fix - packaging for iOS with this updated engine obeys MobileContentScaleFactor, although I am not an engineer so am not sure what other implications of this change may be…

[IOSView.cpp](https://forums.unrealengine.com/uploads/short-url/bK2ZkAINpOohPtHgQAmCs9vXQxd.cpp) (27.6 KB)
