Description

A user has reported that the IsPlayInMobilePreview function does not return true when playing in Mobile Preview. From looking at the function, it seems to be looking specifically for the commandline argument "simmobile" which may not get used when using Mobile Preview through the usual workflow to do so with PIE.

Regression?: No
This occurred in 4.21

Steps to Reproduce
  1. Download the attached project and generate project files / compile it
  2. Open the project
  3. Press play
  4. Note that the print string says False as you are not in Mobile Preview
  5. Click the dropdown beside play and start "Mobile Preview ES2 (PIE)"
    Result: The print string still prints false, although you are in Mobile Preview
    Expected: The print string prints true.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-72652 in the post.

2
Login to Vote

Fixed
ComponentPlatform - Mobile
Affects Versions4.214.224.23
Target Fix4.23
Fix Commit6955818
Main Commit7288465
Release Commit6955818
CreatedApr 11, 2019
ResolvedJul 12, 2019
UpdatedNov 10, 2019