After you install the Vehicle Dynamics Blockset™ Interface for Unreal Engine® 4 Projects support package as described in Install Support Package and Configure Environment, you may need to migrate your project. If your Simulink® model uses an Unreal Engine executable or project developed using a prior release of the support package, you must migrate the project to make it compatible with Unreal® Editor 4.25. Follow these steps:
Open Unreal Engine 4.25. For example, navigate to
Files\Epic Games\UE_4.25\Engine\Binaries\Win64 and open
Use the Unreal Project Browser to open the project that you want to migrate.
Follow the prompts to open a copy of the project. The editor creates a new project folder in the same location as the original, appended with 4.25. Close the editor.
In a file explorer, remove the space in the migrated project folder name. For
MyProject 4.25 to
Use MATLAB® to open the migrated project in Unreal Editor 4.25. For example, if you have a migrated project saved to
C:/Local folder, use this MATLAB
path = fullfile('C:','Local','MyProject4.25','MyProject.uproject'); editor = sim3d.Editor(path); open(editor);
The support package may includes changes in the implementation of some actors. Therefore, if the original project contains actors that are placed in the scene, some of them might not fully migrate to Unreal Editor 4.25. To check, examine the Output Log.
Optionally, after you migrate the project, you can use the project to create an Unreal Engine executable. See Package Custom Scenes into Executable.
After you migrate the project, you can create custom scenes. See Customize Scenes Using Simulink and Unreal Editor.