# Mobile Preview via command line?

**URL:** <https://forums.unrealengine.com/t/mobile-preview-via-command-line/7969>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS\
**Created:** [July 21, 2014, 5:42pm UTC](https://forums.unrealengine.com/t/mobile-preview-via-command-line/7969 "2014-07-21T17:42:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MongooseJV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MongooseJV](https://forums.unrealengine.com/u/MongooseJV)\
**Post date:** [July 21, 2014, 5:42pm UTC](https://forums.unrealengine.com/t/mobile-preview-via-command-line/7969/1 "2014-07-21T17:42:34Z")

</div>

Is it possible to launch the mobile preview of a project via the command line? I found the -game switch but didn’t see any documentation as to how to possibly execute the mobile preview from it. Is there a way to inspect how the unreal editor launches the mobile previewer?

Thanks,  
-jv

---

<div class="post-metadata">

**Author:** ![Michael\_Noland](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael_noland/32/1194689_2.png) [@Michael\_Noland](https://forums.unrealengine.com/u/Michael_Noland)\
**Post date:** [July 22, 2014, 4:29am UTC](https://forums.unrealengine.com/t/mobile-preview-via-command-line/7969/2 "2014-07-22T04:29:26Z")

</div>

> [@voigtboy;101256](#):
>
> Is it possible to launch the mobile preview of a project via the command line? I found the -game switch but didn’t see any documentation as to how to possibly execute the mobile preview from it. Is there a way to inspect how the unreal editor launches the mobile previewer?
> 
> Thanks,  
> -jv

-FeatureLevelES2 should do the trick. The mobile preview from the editor also specifies -faketouches to make the mouse behave like touch events (not needed if your project has that globally set).

```auto

	// apply additional settings
	if (bPlayUsingMobilePreview)
	{
		AdditionalParameters += TEXT(" -featureleveles2 -faketouches");
	}

```

Cheers,  
Michael Noland

---

<div class="post-metadata">

**Author:** ![2726559668](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@2726559668](https://forums.unrealengine.com/u/2726559668)\
**Post date:** [March 17, 2025, 11:05am UTC](https://forums.unrealengine.com/t/mobile-preview-via-command-line/7969/3 "2025-03-17T11:05:07Z")

</div>

To be more specific, it is according to your mobile view feature level.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/4/2c45554e29d11c546d886ed7f12f4fe9fb9cec4e.jpeg)  
So for me in ue4.27, the parameter should be “-game -featureleveles31 -faketouches”  
You can find relevant code in UnrealEngine-4.27.2\Engine\Source\Editor\UnrealEd\Private\PlayLevelNewProcess.cpp `UEditorEngine::LaunchNewProcess`.  
And here is a complete example of commandline parameter.  
“path/to/your/project/name.uproject” /Game/ThirdPersonCPP/Maps/ThirdPersonExampleMap -game -PIEVIACONSOLE -Multiprocess GameUserSettingsINI=“path/to/your/project/Saved/Config/Windows/PIEGameUserSettings0.ini” -MultiprocessSaveConfig -forcepassthrough -messaging -SessionName=“Play in Standalone Game” -featureleveles31 -faketouches -MultiprocessSaveConfig -windowed -ResX=1280 -ResY=720
