Can't connect Simulink 3D scene with Unreal Engine
Show older comments
Hello, I am trying to use my road scene made in Unreal Engine to simulate a car system in Simulink. The problem is that despite following all the steps (installing Plugins, setting the parameters in UE 4.23) given in "Using Unreal Engine with Simulink" video series, and despite opening the Unreal Engine Project from Simulink before running the Simulink Model, I always get the message:
In the Simulation 3D Scene Configuration block, you set the scene source to 'Unreal Editor'. In Unreal Editor, select 'Play' to view the scene.
MATLAB System block 'UnrealCheck/Simulation 3D Scene Configuration/Simulation 3D Engine' error occurred when invoking 'resetImpl' method of 'Simulation3DEngine'. The error was thrown from ' 'C:\Program Files\MATLAB\R2020a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DEngine.p' at line 0'.
Caused by:
- 3D simulation engine startup error. Start the 3D simulation engine editor.
I am using MATLAB 2020a and Unreal Engine 4.23, the recommended system for Simulink-Unreal co-simulation.
Can anyone help me with this?
Answers (1)
Nishan Nekoo
on 24 Feb 2026
0 votes
Hi Srutorshi, can you clarify whether you are using a custom project or whether you are using the provided AutoVrtlEnv project?
If you are using a custom project, you might need to reparent the level blueprint:
From the R2020a documentation:
If this is your first time opening a custom project in Unreal Editor 4.23, you may need to associate, or reparent, this project with the Sim3dLevelScriptActor level blueprint used in Vehicle Dynamics Blockset. The level blueprint controls how objects interact once placed within in the Unreal environment. If you do not reparent the project to this level blueprint, the simulation returns an error.
To reparent the level blueprint:
- In the Unreal Editor toolbar above the editor window, select Blueprints > Open Level Blueprint.
- In the Level Blueprint window, select File > Reparent Blueprint.
- Click the Sim3dLevelScriptActor blueprint and close the Level Blueprint window.If you do not see this blueprint, make sure that you have the MathWorksSimulation plugin installed and enabled.
- Navigate back to the editor window. In the toolbar above this window, select Settings > Plugins.
- In the Plugins window, verify that the MathWorks Interface plugin appears. This plugin refers to the MathWorksSimulation.uplugin file that you copied into your local Unreal Editor installation from the Vehicle Dynamics Blockset Support Package for Unreal Engine 4 Projects.If you editor installation includes the plugin, then when you open a project in the editor for the first time, you are prompted to enable this plugin. If you do not see the MathWorks Interface plugin in this window, repeat the steps under and reopen the editor from MATLAB.
- Select the Enabled check box.
- Close the editor, reopen it from MATLAB, and repeat the steps to reparent the blueprint.
Let me know if that helps.
Nishan
3 Comments
SRUTORSHI
on 24 Feb 2026
Nishan Nekoo
on 24 Feb 2026
Have you tried using the provided AutoVrtlEnv project? It might help to narrow down whether the issue is with the plugin setup or whether it is your custom project. I would also recommend contacting MathWorks support at support@mathworks.com and they should be able to help you with this.
SRUTORSHI
on 2 Mar 2026
Categories
Find more on Simulink 3D Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!