Python Script Editor

Python script editor plugin for Unreal Engine

Python Script Editor User Guide

Features Overview

Editor Overview

The Python Script Editor provides a convenient environment for writing and executing Python code in Unreal Engine.

Features:

Editor Interface

Editor Overview

You can add and remove tabs with the +/x buttons on the tab bar, double clicking will rename the tab.

Above the output log is a search bar with optional regex for searching previous outputs.

Keyboard Shortcuts

Code Execution

The editor supports executing Python code directly within Unreal Engine. You can:

Completer

Auto-completion popup example

The Python Script Editor includes a code completion feature accessible via Ctrl+Tab. The completer popup helps speed up coding by providing contextual suggestions:

The completer provides suggestions based on the variables in the current scope.

Code Snippets

Snippets Menu

The snippets menu provides quick access to commonly used code blocks:

Create Snippet Dialog

Creating custom snippets:

Output Log Features

Regex Search

Getting Started

  1. Open the Python Script Editor from Tools -> PYTHON -> Python Script Editor
  2. Create a new tab using the + button
  3. Write or paste your Python code
  4. Use Ctrl+Enter to execute selected code
  5. View output in the log panel below

Working with Snippets

  1. Right-click in the editor to access snippets menu
  2. Select “Create Snippet” to save current selection
  3. Use %SELECTION% in snippets to include selected text
  4. Access snippets through right-click menu or shortcut bar

Tips and Best Practices

⚠️ Warning: While the Python Script Editor automatically saves your work periodically, there is a risk of data loss if Unreal Engine crashes unexpectedly. It is strongly recommended to keep important scripts backed up in a separate location (such as a version-controlled repository or local file system) outside of the editor.