triangular-flag_1f6a9.png

In the previous chapter, we talked about why Python can be useful, and how to follow this training.

Here, we’ll see how to configure a UE project to be able to run Python.

Table of contents

Introduction

Using Python inside of Unreal is quite new. It’s supported on UE 4.26 and newer versions, but it’s still an experimental feature in development. It was possible on older version of UE as well, but it was not something developed by Epic.

The way it works is simple

Running Python from UE is super useful, but you should know what you can do and what you cannot.

Now, let’s configure our UE project.

Setup

Start with a UE 5.0 project, or get the one available in Getting the project files.

To run Python code in UE, we have to make sure the Python Editor Script Plugin plugin is enabled. Go in Edit > Plugins and check it. Then restart UE.