ue-actor-component-arc…
Use when writing or debugging AActor and UActorComponent C++: constructor vs BeginPlay, PostInitializeComponents, EndPlay…
Use when writing or debugging Unreal Engine animation C++: AnimInstance subclasses, thread-safe update, FAnimInstanceProxy, montage playback and delegates, anim notifies, animation curves, blend spaces, anim state machines, linked anim layers, root motion. Also use when the user
Claude Code
$ npx -y skills add quodsoler/unreal-engine-skills --skill ue-animation-system --agent claude-code
Codex
$ npx skills add quodsoler/unreal-engine-skills --skill ue-animation-system -a codex -y
Cursor
$ npx skills add quodsoler/unreal-engine-skills --skill ue-animation-system -a cursor -y
Gemini CLI
$ npx skills add quodsoler/unreal-engine-skills --skill ue-animation-system -a gemini-cli -y
GitHub Copilot
$ npx skills add quodsoler/unreal-engine-skills --skill ue-animation-system -a github-copilot -y
OpenCode
$ npx skills add quodsoler/unreal-engine-skills --skill ue-animation-system -a opencode -y
Windsurf
$ npx skills add quodsoler/unreal-engine-skills --skill ue-animation-system -a windsurf -y
name: ue-animation-system description: "Use when writing or debugging Unreal Engine animation C++: AnimInstance subclasses, thread-safe update, FAnimInstanceProxy, montage playback and delegates, anim notifies, animation curves, blend spaces, anim state machines, linked anim layers, root motion. Also use when the user mentions 'UAnimInstance', 'NativeUpdateAnimation', 'NativeThreadSafeUpdateAnimation', 'Montage_Play', 'OnMontageEnded', 'UAnimNotify', 'UAnimNotifyState', 'branching point', 'GetCurveValue', 'blend space', 'AnimGraph', 'LinkAnimClassLayers', 'motion matching', 'motion warping', 'root motion'. For movement and RootMotionSource, see ue-character-movement; for montage-driven abilities, see ue-gameplay-abilities." metadata: version: "2.0.0" engine: "5.8"
Target engine: **UE 5.8**. APIs below are verified against the 5.8 headers; older forms are listed under "Deprecated — do not use".
Covers the runtime animation path in the `Engine` module — `UAnimInstance`, `FAnimInstanceProxy`, `UAnimMontage`, `UAnimNotify`/`UAnimNotifyState`, curves, blend spaces, anim state machines, linked anim layers and root motion — plus the animation plugins shipped in 5.8 (`PoseSearch`, `MotionWarping`, `Chooser`, `IKRig`, `ControlRig`, `BlendStack`, `OptimusCore`, `UAF`). Build.cs: `Engine` for everything under `Runtime/Engine/Classes/Animation`, `AnimGraphRuntime` for the helper anim nodes such as `FAnimNode_LayeredBoneBlend`; plugin module names are listed per row below.
Read `.agents/ue-project-context.md` if it exists (module names, conventions, enabled plugins, GAS/networking setup). Do not stop if it is missing.
Identify the area from the request and the codebase. Ask only when two plausible readings would produce different code.
| Request is about… | Go to | |---|---| | AnimInstance subclass, thread-safe update, proxy | [AnimInstance and Proxy](#animinstance-and-proxy) | | Playing/stopping montages, section jumps, end callbacks | [Montages](#montages) | | Notifies, notify states, branching points, notify timing | [Anim Notifies](#anim-notifies) | | Curve values, morph targets, curve metadata | [Animation Curves](#animation-curves) | | Blend spaces, state machines, aim offsets, layered blends | [Blend Spaces and State Machines](#blend-spaces-and-state-machines) | | Linked anim layers, per-mode locomotion swapping | [Linked Anim Graphs and Layers](#linked-anim-graphs-and-layers) | | Root motion extraction and modes | [Root Motion](#root-motion) | | Motion matching, warping, IK Rig, Control Rig, deformers | [5.8 Animation Plugins](#58-animation-plugins) |
`UAnimInstance` (`Animation/AnimInstance.h`) runs in two phases. Game thread: `NativeUpdateAnimation` — safe to read gameplay state. Worker thread: `NativeThreadSafeUpdateAnimation` and blend-tree evaluation. Cache gameplay reads on the game thread; read only those cached values on the worker thread.
Verbatim virtuals (`AnimInstance.h:1436-1457` public, `:1716-1719` protected):
virtual void NativeInitializeAnimation(); virtual void NativeUpdateAnimation(float DeltaSeconds); virtual void NativeThreadSafeUpdateAnimation(float DeltaSeconds); virtual void NativePostEvaluateAnimation(); virtual void NativeUninitializeAnimation(); virtual void NativeBeginPlay(); virtual FAnimInstanceProxy* CreateAnimInstanceProxy(); // protected virtual void DestroyAnimInstanceProxy(FAnimInstanceProxy* InProxy); // protected
`FAnimInstanceProxy` (`Public/Animation/AnimInstanceProxy.h`) is the worker-thread data container. Its override points are **protected** (`:603-669`):
virtual void Initialize(UAnimInstance* InAnimInstance);
virtual void PreUpdate(UAnimInstance* InAnimInstance, float DeltaSeconds);
virtual void Update(float DeltaSeconds) {}
virtual bool Evaluate(FPoseContext& Output) { return false; }
virtual void PostUpdate(UAnimInstance* InAnimInstance) const;
virtual void Uninitialize(UAnimInstance* InAnimInstance);Reach the proxy with the protected templates `GetProxyOnGameThread<T>()` (`:1746`) and `GetProxyOnAnyThread<T>()` (`:1769`).
// MyAnimInstance.h
#pragma once
#include "CoreMinimal.h"
#include "Animation/AnimInstance.h"
#include "Animation/AnimInstanceProxy.h"
#include "MyAnimInstance.generated.h"
class ACharacter;
class UCharacterMovementComponent;
USTRUCT()
struct FMyAnimInstanceProxy : public FAnimInstanceProxy
{
GENERATED_BODY()
FMyAnimInstanceProxy() = default;
explicit FMyAnimInstanceProxy(UAnimInstance* InAnimInstance)
: FAnimInstanceProxy(InAnimInstance) {}
// Written on the game thread in PreUpdate, read on the worker thread in Update.
FVector Velocity = FVector::ZeroVector;
float Speed = 0.f;
bool bIsFalling = false;
protected:
virtual void PreUpdate(UAnimInstance* InAnimInstance, float DeltaSeconds) override;
virtual void Update(float DeltaSeconds) override;
};
UCLASS()
class MYGAME_API UMyAnimInstance : public UAnimInstance
{
GENERATED_BODY()
public:
virtual void NativeInitializeAnimation() override;
virtual void NativeUpdateAnimation(float DeltaSeconds) override;
virtual void NativeThreadSafeUpdateAnimation(float DeltaSeconds) override;
virtual void NativeUninitializeAnimation() override;
protected:
virtual FAnimInstanceProxy* CreateAnimInstanceProxy() override;
virtual void DestroyAnimInstanceProxy(FAnimInstanceProxy* InProxy) override;
UPROPERTY(Transient)
TObjectPtr<ACharacter> OwningCharacter;
UPROPERTY(Transient)
TObjectPtr<UCharacterMovementComponent> MovementComp;
UPROPERTY(Transient, BlueprintReadOnly, Category = "Locomotion")
float Speed = 0.f;
UPROPERTY(Transient, BlueprintReadOnly, Category = "Locomotion")
float Direction = 0.f;
UPROPERTY(Transient, BlueprintReadOnly, Category = "Locomotion")
bool bIsInAir = false;
};// MyAnimInstance.cpp #include "MyAnimInstance.
A collection of 31 AI agent skills for Unreal Engine C++ development. Built for game developers who want AI coding agents to help write correct, production-quality UE5 C++ code.
Use when writing or debugging AActor and UActorComponent C++: constructor vs BeginPlay, PostInitializeComponents, EndPlay…
Use when writing Unreal Engine C++ AI — AI controllers, behavior tree nodes, blackboards, AI perception, navmesh pathfinding, EQS…
Use when offloading work off the game thread, dispatching results back to it, running data-parallel loops, or scheduling timers…
Use when playing, mixing or debugging sound in Unreal Engine — one-shot SFX, looping ambience, music, dialogue or procedural…
Use when exposing C++ to Blueprint or calling Blueprint from C++: UFUNCTION(BlueprintCallable), BlueprintPure,…
Use when writing or debugging UCharacterMovementComponent code: custom movement modes, floor detection, jumping, crouching, root…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…