IOS PIEPreviewDeviceSpecs(Engine/Content)

FLevelEditorActionCallbacks::GeneratePreviewJson_Clicked(FString PlatformName)
→ DPSelectorModule->ExportDeviceParametersToJson(AbsoluteDebugInfoDirectory);

The ExportDeviceParametersToJson function appears to be unimplemented for iOS. In the Engine/Content/Editor/PIEPreviewDeviceSpecs folder, there are a few older iOS devices, but I would like to add newer models. What process does Epic follow to add new devices?

Hi @Anonymous_574c86bb5783a669a345225cf0a36022 ,
I did some research and testing, and it’s indeed possible to manually add new iOS device models to the preview system in PIE (Play In Editor). To do this, you can duplicate and edit the .json files located in Engine/Content/Editor/PIEPreviewDeviceSpecs, adjusting parameters such as resolution, DPI, scale factor, safe zones, etc. You can also include a .png with the same name to show the device frame in the editor.

However, this method is not officially documented or guaranteed by Epic. If the .json values are incorrect or the file is poorly structured, it may cause errors, or even crash the editor.
Here’s the official documentation on how to enable the Mobile Previewer:

On the other hand, Epic usually adds new devices internally when they release major engine versions. Although Unreal Engine 5.6 supports iPhones from the 6s and up (iOS 15+), only selected device profiles are included as PIE preview options, and they get updated based on relevance or testing needs.

Hope it helps!

1 Like