MathWorksSimulation Plugin for Unreal Engine could not be loaded.

Hello,
I am having trouble using the MathWorksSimulation plugin in Unreal Engine for Unreal-Simulink cosimulation. I followed the steps detailed at the link below.
When I open a project an Unreal Engine 5.3 and attempt to add the plugin, it prompts me to reload the scene. I hit yes to rebuild, and Unreal opens the scene is Visual Studio 2022, which is properly configured according to the Unreal Recommendations at the link below.
Once I have rebuilt in Visual Studio 2022, and attempt to re-launch the project, I get this error:
"Plugin 'MathWorksSimulation' failed to load because module 'MathWorksSimulation' could not be loaded. There may be an operating system error or the module may not be properly set up."
Does anyone know how to resolve this? My computer meets the hardware and software specifications detailed here. All the files are in the correct location for Unreal to access them as far as I can verify.
Thanks in advance!
Kory

3 Comments

You should contact MATLAB support:
They are TMW employees and know best about sources and solutions for potential problems with their software.
Hi Kory,
What version of MATLAB are you using here? Have you tried using the example project provided, or are you using a custom Unreal Engine project?
Nishan
Thank you for the replies!
I removed the Simulink 3D Animation Interface plugin and associated files, then re-ran the sim3d.utils.copyExamplesSim3DProject command and it seems to be working now. I'm not entirely sure what I did wrong the first time.
Thanks for the support,
Kory

Sign in to comment.

 Accepted Answer

Kory resolved the issue by removing the Simulink 3D Animation Interface plugin and associated files, then re-running the sim3d.utils.copyExamplesSim3DProject function.

2 Comments

I have matlab 2026a working with unreal editor through simulink. However, when I try to pacakage the .exe scene in unreal engine 5.4.4 with the mathworks interface plugin it fails due to link errors. My unreal engine can package .exe when this plugin is disabled. Link 2002 error exit (6). How to resolve this?
Hi Robert, can you try packaging an executable with the untouched example project? Make sure to use a clean installation of the latest plugins for R2026a by deleting the MathWorks folder at
C:\Program Files\Epic Games\UE_5.4\Engine\Plugins\Marketplace\Mathworks
and using
sim3d.utils.copyExampleSim3dProject to create a new example project with a fresh set of plugins copied.
This might help narrow down if there are any project-specific issues, or whether your environment is not set up correctly. Are there any other LINK errors that show up higher up in the log?
Nishan

Sign in to comment.

More Answers (0)

Products

Release

R2025b

Asked:

on 7 Dec 2025

Commented:

about 8 hours ago

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!