create-actor

Create Unreal Engine Actor classes with C++ header, source files, and component setup.

Updated May 29, 2026
One-click install
npx skills add https://github.com/JanVogelsang/UE-AgentFramework --skill create-actor-janvogelsang
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-actor
Source: https://github.com/JanVogelsang/UE-AgentFramework/tree/main/UnrealEngine/skills/create-actor
Command: npx skills add https://github.com/JanVogelsang/UE-AgentFramework --skill create-actor-janvogelsang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up a new Unreal Engine Actor requires boilerplate C++ code across header and source files, correct UCLASS macros, component declarations, and build verification, which is repetitive and error-prone when done by hand. ## Core Features & Use Cases - C++ Class Scaffolding: Generates the header file with UCLASS specifiers, GENERATED_BODY(), BeginPlay and Tick overrides, and root component declarations. - Source Implementation: Creates the .cpp file with constructor logic using CreateDefaultSubobject, tick enablement, and optional replication support for multiplayer. - Build Verification: Checks includes for circular dependencies and compiles the project to confirm the new class works. - Use Case: A gameplay programmer needs a new pickup item actor. Provide the class name APickupItem and receive a complete, compilable Actor with a mesh component ready for Blueprint extension. ## Quick Start Create a new Unreal Actor class named APickupItem with a static mesh component and verify it compiles.

Frequently Asked Questions about create-actor

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

FAQPage Schema
How do I create a new Actor class in Unreal Engine C++?▼

Create a header file with the UCLASS macro, GENERATED_BODY(), and BeginPlay/Tick overrides, then implement the constructor in the source file using CreateDefaultSubobject for components. Build the project to verify the class compiles correctly.

How to add components to an Unreal Engine Actor in C++?▼

Declare components as UPROPERTY members in the header, such as UStaticMeshComponent or USphereComponent, then instantiate them in the constructor with CreateDefaultSubobject. Set a root component like USceneComponent to anchor the hierarchy.

Can an Unreal Actor support multiplayer replication?▼

Yes, set bReplicates = true in the Actor constructor to enable replication for multiplayer games. This flag tells the engine to synchronize the Actor's state across the network.

Why does my new Unreal Actor class fail to compile?▼

Compilation failures usually come from missing includes, circular dependencies between headers, or incorrect UCLASS specifiers. Verify all required headers are included and that no two headers include each other.

How do I enable Tick for an Unreal Engine Actor?▼

Set PrimaryActorTick.bCanEverTick = true in the Actor constructor and override the Tick(float DeltaTime) method. Declare the Tick override in the header file alongside BeginPlay.