Main Content

sim3d.Editor

Interface to the Unreal Engine project

Description

Use the sim3d.Editor class to interface with the Unreal® Editor.

To develop scenes with the Unreal Editor and co-simulate with Simulink®, you need the Vehicle Dynamics Blockset™ Interface for Unreal Engine® 4 Projects support package. The support package contains an Unreal Engine project that allows you to customize the Vehicle Dynamics Blockset scenes. For information about the support package, see Customize 3D Scenes for Vehicle Dynamics Simulations.

Creation

Description

example

MATLAB creates an sim3d.Editor object for the Unreal Editor project specified in sim3d.Editor(project).

Input Arguments

expand all

Project path and name.

Example: "C:\Local\AutoVrtlEnv\AutoVrtlEnv.uproject"

Data Types: string

Properties

expand all

This property is read-only.

Project path and name with Unreal Engine project file extension.

Example: "C:\Local\AutoVrtlEnv\AutoVrtlEnv.uproject"

Data Types: string

Object Functions

openOpen the Unreal Editor

Examples

collapse all

Open an Unreal Engine project in the Unreal Editor.

Create an instance of the sim3d.Editor class for the Unreal Engine project located in C:\Local\AutoVrtlEnv\AutoVrtlEnv.uproject.

editor=sim3d.Editor(fullfile("C:\Local\AutoVrtlEnv\AutoVrtlEnv.uproject"))

Open the project in the Unreal Editor.

editor.open();
Introduced in R2019b