AGENT SKILL

unreal-pie-control

Control Play In Editor (PIE) and Simulate In Editor (SIE) sessions via UCP. Use when the user asks to start, stop, pause, resume PIE/SIE, or query PIE state and worlds.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 3
Forks
1

01 前言 Front Matter

name
unreal-pie-control
description
Control Play In Editor (PIE) and Simulate In Editor (SIE) sessions via UCP. Use when the user asks to start, stop, pause, resume PIE/SIE, or query PIE state and worlds.

03 SKILL.md 正文

Unreal PIE Control

Control Play In Editor (PIE) and Simulate In Editor (SIE) sessions through UCP's call command.

Prerequisite: The unreal-client-protocol skill must be available and the UE editor must be running with the UCP plugin enabled.

Custom Function Library

UPIEOperationLibrary

CDO Path: /Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary

Function Params Returns Description
StartPIE (none) bool Start a Play In Editor session
StartSimulate (none) bool Start a Simulate In Editor session
StopPIE (none) (void) Stop the current PIE/SIE session
IsInPIE (none) bool Whether a play session is in progress
IsSimulating (none) bool Whether a simulate session is in progress
PausePIE (none) bool Pause all PIE worlds
ResumePIE (none) bool Resume all PIE worlds
GetPIEWorlds (none) TArray<UWorld*> Get all PIE world instances

Examples

Start PIE:

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"StartPIE"}

Stop PIE:

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"StopPIE"}

Start Simulate:

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"StartSimulate"}

Check if PIE is running:

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"IsInPIE"}

Pause PIE:

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"PausePIE"}

Get PIE worlds:

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"GetPIEWorlds"}

Engine Built-in APIs

UEditorLevelLibrary

CDO Path: /Script/EditorScriptingUtilities.Default__EditorLevelLibrary

Function Description
GetPIEWorlds() Get worlds from Play-In-Editor sessions (alternative to custom library)

UGameplayStatics (on PIE worlds)

CDO Path: /Script/Engine.Default__GameplayStatics

Once PIE is running, UGameplayStatics functions automatically resolve to the PIE world (UCP's WorldContext auto-injection prefers PIE worlds):

Function Description
GetPlayerPawn(WorldContextObject, PlayerIndex) Get the player pawn in PIE
GetPlayerController(WorldContextObject, PlayerIndex) Get the player controller in PIE
GetAllActorsOfClass(WorldContextObject, ActorClass) Find actors in the PIE world

Common Patterns

Start PIE, then interact with PIE world

Start a play session, then query actors in the running game (run as separate calls):

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"StartPIE"}

After PIE starts, UCP auto-resolves WorldContext to the PIE world:

{"object":"/Script/Engine.Default__GameplayStatics","function":"GetPlayerPawn","params":{"PlayerIndex":0}}

Pause, inspect, resume

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"PausePIE"}

Inspect game state while paused, then resume:

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"ResumePIE"}

Check state before starting

{"object":"/Script/UnrealClientProtocolEditor.Default__PIEOperationLibrary","function":"IsInPIE"}

If false, start PIE. If true, stop first then restart if needed.

Key Rules

  1. Only one PIE/SIE session can be active at a time. Check IsInPIE before starting.
  2. StartPIE/StartSimulate are asynchronous — they queue the request, the session starts on the next editor tick. Subsequent calls to functions that depend on PIE being active should be sent as separate requests.
  3. StopPIE is also asynchronous — it queues the end request.
  4. WorldContext auto-resolution — when PIE is active, UCP automatically uses the PIE world for functions requiring WorldContextObject.

04 同仓库更多 Skills

welflau
welflau/ai-dev-system

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 3
welflau
welflau/ai-dev-system

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

★ 3
welflau
welflau/ai-dev-system

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

★ 3
welflau
welflau/ai-dev-system

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

★ 3
welflau
welflau/ai-dev-system

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

★ 3
welflau
welflau/ai-dev-system

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

★ 3