# Unreal Python API

> Unreal Engine Python API reference (UE 4.27, the version Epic publishes most `unreal.*` Python bindings under). 370 cleaned class/struct/enum pages covering AI, Animation, Engine, GameplayAbilities, Slate, AugmentedReality, ControlRig, and ~50 other modules. Use this skill when writing Unreal Editor Python scripts, asset automation, or in-engine Python tools.

- Skill: `gcampton/unreal-python-api` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add gcampton/unreal-python-api`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gcampton/unreal-python-api/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: gcampton (https://skillmd.com/u/gcampton)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/gcampton/unreal-python-api

---


# Unreal Python API — Skill

Reference for the `unreal` Python module exposed by Unreal Engine's editor scripting plugin. Every page documents one `unreal.<ClassName>`: constructor signature, base class, C++ source module, editor properties, and method/property definitions.

## Layout

- `references/<ClassName>.md` — one cleaned page per class (370 total)
- `references/index.md` — every class grouped by C++ source module (59 modules)
- `references/unreal.md` — module-level functions (`load_asset`, `new_object`, `log`, …)
- `references/introduction.md` — Epic's intro page
- `references/_ObjectBase.md`, `_WrapperBase.md`, `_EnumEntry.md`, `_Logger.md` — base classes

## How to navigate

> **DO NOT `Read` `references/index.md` blindly** — it's grep-friendly but ~600 lines. Filter to the section you need.

Filenames mirror class names exactly, so most lookups don't need the index at all.

### 1. Class by name (most common)

```bash
ls references/ | grep -i "staticmesh"
ls references/ | grep -iE "^(Actor|Pawn|Character)"
```

Then `Read references/<ClassName>.md`.

### 2. Symbol / method search across pages

```bash
grep -rli "spawn_actor" references/ | head
grep -rli "set_static_mesh" references/ | head
```

`-l` returns filenames only — open the most relevant.

### 3. Browse a module's classes

```bash
awk '/^## Engine$/{f=1; next} /^## /{f=0} f' references/index.md | head -40
awk '/^## AnimGraphRuntime$/{f=1; next} /^## /{f=0} f' references/index.md
```

List module names only:

```bash
grep -E "^- \*\*" references/index.md
```

### 4. Module-level functions

```bash
grep -i "load_asset\|new_object" references/unreal.md
```

## Page format

Each cleaned class page has this shape:

```
# `unreal.ClassName`

_class_ unreal.ClassName(...constructor args...)

Bases: `unreal.ParentClass`

<one-line description>

**C++ Source:**
- **Module**: <ModuleName>
- **File**: <Header.h>

**Editor Properties:** (see get_editor_property/set_editor_property)
- `prop_name` (Type): [Read-Write] Description...

_property_ prop_name
[Read-Write] Description...
Type
(TypeName)

<...method definitions...>
```

The class signature, `Bases:`, and `Module:` lines are the most reliable anchors for grep.

## Coverage notes

- **Version:** the bulk of pages are UE 4.27 — that's the version Epic still publishes the Python API reference under at `dev.epicgames.com/.../python-api/`. A few 5.1 / 5.3 pages are mixed in where Epic added version-specific entries.
- **Native types** (`Array`, `Map`, `Set`, `Name`, `Text`, etc.) have no C++ Module field and land in the `Uncategorized` group of `references/index.md`.
- **Not included:** the alphabetic `genindex-*` pages from the source site — they were just A-Z link tables. Use `ls references/ | grep` instead.
- **Sibling skill:** for full UE concept/tutorial docs (Blueprint, rendering, animation, etc.), see [claude-skill-unreal-engine-full](https://github.com/gcampton/claude-skill-unreal-engine-full).

## Lookup precedence

If the agent has both this skill and the broader UE skill loaded:

- **Python script questions** (`unreal.X` API, editor automation, asset Python) → this skill.
- **Concept / tutorial / Blueprint / C++ questions** → unreal-engine skill.

