ue-editor-scripting-and-python

Automate Unreal Editor tasks using Python, Blutility widgets, and editor scripting subsystems.

55|5|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/kevinpbuckley/unreal-engine-skills --skill ue-editor-scripting-and-python-kevinpbuckley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ue-editor-scripting-and-python
Source: https://github.com/kevinpbuckley/unreal-engine-skills/tree/main/skills/core/ue-editor-scripting-and-python
Command: npx skills add https://github.com/kevinpbuckley/unreal-engine-skills --skill ue-editor-scripting-and-python-kevinpbuckley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Repetitive Unreal Editor work such as batch-renaming assets, reimporting content, validating levels, and building artist-facing tool panels is slow and error-prone when done by hand. This Skill gives an agent the exact UE 5.8 APIs, classes, and patterns needed to automate the editor with Python, Editor Utility Widgets, and editor subsystems. ## Core Features & Use Cases - Python automation with the unreal module: batch asset operations, transactions for undo/redo, ScopedSlowTask progress dialogs, startup scripts, and headless commandlets for CI pipelines. - Blutility tooling: build dockable Editor Utility Widgets, Content Browser right-click actions via UAssetActionUtility, and background work with UEditorUtilityTask. - Editor scripting subsystems: use UEditorActorSubsystem, UEditorAssetSubsystem, ULevelEditorSubsystem, UAssetEditorSubsystem, and UEditorUtilitySubsystem from C++ or Python, with exact engine source citations. - C++ exposure to scripting: control which APIs surface in Python and Blueprints using BlueprintCallable, CallInEditor, ScriptMethod, and ScriptName UFUNCTION specifiers. - Use Case: A CI job needs to validate every static mesh in a project. Write a Python script using UEditorAssetSubsystem to enumerate assets, wrap changes in a ScopedEditorTransaction, and run it headlessly with UnrealEditor-Cmd.exe -run=pythonscript. ## Quick Start Ask the agent to write a Python script that uses the Editor Asset Subsystem to batch rename and save all assets under a chosen /Game folder with undo support.

Frequently Asked Questions about ue-editor-scripting-and-python

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

FAQPage Schema
How do I batch rename assets in Unreal Engine with Python?

Use UEditorAssetSubsystem via unreal.get_editor_subsystem(unreal.EditorAssetSubsystem) and call rename_asset for each path, wrapping the loop in unreal.ScopedEditorTransaction for a single undo step. Finish by calling save_asset or save_directory so changes persist.

How do I run an Unreal Python script headlessly in CI?

Run UnrealEditor-Cmd.exe with -run=pythonscript -script="path/to/script.py" to execute UPythonScriptCommandlet without the full editor UI. The commandlet does not load a level automatically, so call load_level on the LevelEditorSubsystem first if your script needs level content.

What is the difference between Editor Utility Widgets and Editor Utility Objects?

UEditorUtilityWidget is a dockable UMG panel hosted in an editor tab, suited for artist-facing tools. UEditorUtilityObject is a no-UI utility run on demand or at startup via bRunEditorUtilityOnStartup, and its subclass UAssetActionUtility adds Content Browser right-click actions.

Should I use UEditorAssetLibrary or UEditorAssetSubsystem in UE 5.8?

Use UEditorAssetSubsystem. UEditorAssetLibrary and UEditorLevelLibrary from the EditorScriptingUtilities plugin were deprecated in UE 5.0 and only remain for backwards compatibility, generating deprecation warnings in new code.

Why does setting a property directly in Unreal Python not update the editor?

Direct attribute assignment bypasses pre/post-edit callbacks, so editor state can become inconsistent. For EditAnywhere properties use set_editor_property, which triggers the same notifications as changing the value in the Details panel.

Can Unreal editor Python scripts run in a packaged game?

No. The Python Script Plugin and all Blutility classes are editor-only and stripped from packaged builds. Editor C++ code must live in a module of type Editor or behind WITH_EDITOR guards to avoid packaging failures.