unreal-pcg-python

Automate Unreal Engine PCG graph creation and batch generation with editor Python scripts.

15|1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/maystudios/claude-skills --skill unreal-pcg-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unreal-pcg-python
Source: https://github.com/maystudios/claude-skills/tree/main/unreal-pcg-python
Command: npx skills add https://github.com/maystudios/claude-skills --skill unreal-pcg-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a clear, editor-focused workflow for integrating Python with Unreal Engine's Procedural Content Generation system so developers can automate PCG graph creation, batch generation, and asset manipulation without manual UI steps. It reduces repetitive editor tasks, eases parameter sweeps and CI-friendly asset generation, and documents known constraints so teams avoid runtime or threading pitfalls.

Core Features & Use Cases

  • PCGPythonInterop / Execute Python Script: How to enable and use the Execute Python Script node to run inline or file-based Python inside PCG graphs for editor-time orchestration.
  • PCG Python API for Editor Automation: Creating PCG graph assets, manipulating PCGComponent on actors, triggering generation, seeding for deterministic outputs, and cleaning up generated content via the unreal Python API.
  • Custom Node Guidance: Using PCGBlueprintElement patterns and overridable methods to implement custom node logic, plus when to prefer Blueprint or C++ for performance and stability.
  • Practical Limitations & Best Practices: Editor-only constraints, main-thread execution, no direct data output from the Execute Python node, API churn considerations, and recommended uses like batch asset creation and parameter sweeps.
  • Use Case Example: Batch-generate level placement points for hundreds of actors, run deterministic sweeps of seeds to produce variant datasets for procedural content, or automate migration of Houdini outputs into PCG assets.

Quick Start

Create a PCG graph asset named MyPCGGraph in /Game/PCG, attach a PCGComponent to the target actors, set seed 42, and run an editor Python script to batch-generate the PCG content across those actors.

Frequently Asked Questions about unreal-pcg-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate PCG graph creation in Unreal Engine 5 using Python?

Automate PCG graph creation in Unreal Engine 5 by using the editor Python API to generate PCG graph assets, attach PCGComponents to actors, and trigger procedural content generation without manual UI interaction.

How does the Execute Python Script node work inside a UE5 PCG graph?

The Execute Python Script node operates inside a UE5 PCG graph by leveraging PCGPythonInterop to run inline or file-based Python for editor-time orchestration, but it cannot directly output data back into the PCG graph.

Can I use Python to batch-generate PCG content and run parameter sweeps in UE5?

You can batch-generate PCG content and run parameter sweeps in UE5 by applying editor Python scripts to manipulate PCGComponents, set deterministic seeds, and automate asset generation across multiple actors.

What are the limitations of using Python for PCG editor automation in Unreal Engine?

Limitations of PCG editor automation include editor-only execution constraints, mandatory main-thread execution, no direct data output from the Execute Python Script node, and potential API churn across Unreal Engine versions.

When should I use PCGBlueprintElement versus C++ for custom PCG node logic?

Use PCGBlueprintElement for custom PCG node logic when prioritizing rapid editor-side iteration, but prefer C++ for performance-critical or stable production nodes to avoid runtime overhead and ensure stability.