Skip to content
Back to skills

Unreal Animation

ASecurity

Unreal animation: Animation Blueprint or C++ UAnimInstance, NativeUpdateAnimation, montages, slots, sections, notifies and notify states, root motion.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsc++nodespring

Works with

  • cli

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add tipoLi5890/game-studio --skill unreal-animation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unreal Animation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unreal Animation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tipoli5890-unreal-animation/badge)](https://www.skillsdirectory.com/skills/tipoli5890-unreal-animation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unreal-animation
description: >-
  Unreal animation: Animation Blueprint or C++ UAnimInstance, NativeUpdateAnimation, montages,
  slots, sections, notifies and notify states, root motion.
---

# unreal-animation — anim instances, montages and notifies

An Animation Blueprint is a graph on top of a `UAnimInstance`. The values the graph reads are
gathered and derived in C++, one-off actions play as montages through a slot, and notifies on the
clips' key frames tell the game when a hand closes or a window opens.

## Load what the situation needs

| The situation | Read |
|---|---|
| "Animate the courier", locomotion from speed and falling | *The method* below |
| `UAnimInstance` in C++: the update points, gather and derive, the worker thread | `reference/anim-instance.md` |
| Montages: slots, slot groups, sections, `Montage_Play`, `OnMontageEnded` | `reference/montages.md` |
| Root motion: per clip, Root Motion Mode, networked play | `reference/montages.md`, root motion |
| Notifies and notify states, trigger settings, Queued or Branching Point | `reference/notifies.md` |
| The anim instance | `templates/CourierAnimInstance.h`, `templates/CourierAnimInstance.cpp` |
| The grab notify, the vault window | `templates/ParcelGrabNotify.*`, `templates/VaultWindowNotifyState.*` |
| Clips from another skeleton, IK Rig, the hood and bag swinging | `unreal-rigged-character` |
| Importing the clips onto the courier's skeleton | `unreal-asset-import` |
| The clips as the asset side made them, root travel on the trajectory bone | `blender-retarget` (`game-assets` plugin) → `reference/engine-handoff.md` |

## The method

1. **Clips on one skeleton.** The courier's clips import onto `SK_Courier`
   (`unreal-asset-import`); clips from another skeleton are retargeted first
   (`unreal-rigged-character`).
2. **The C++ parent.** Copy the six template files into `Source/CourierRun/` and build
   (`unreal-compile-loop`). `UCourierAnimInstance` gathers velocity and falling from the pawn in
   `NativeUpdateAnimation` and derives `GroundSpeed` and `bIsMoving` in
   `NativeThreadSafeUpdateAnimation`, which runs on a worker thread.
3. **The Blueprint.** `ABP_Courier` with `UCourierAnimInstance` as its Parent Class, set as the
   Anim Class of the courier's mesh. Its AnimGraph blends locomotion on `GroundSpeed`, switches on
   `bIsFalling`, and holds a Slot node for montages; its class defaults name `AM_Vault` in
   `VaultMontage` and the Root Motion Mode.
4. **The vault.** `AM_Vault` with sections as needed, `UVaultWindowNotifyState` over the frames
   in which the next move may chain in, and Enable Root Motion on its clip when the vault carries
   travel. `PlayVault()` plays it and returns its length, or 0 when it did not play;
   `OnVaultEnded` fires when it ends.
5. **The grab.** `UParcelGrabNotify` on the pick-up clip's grab frame, Montage Tick Type Branching
   Point; `OnParcelGrabbed` in `ABP_Courier` (or the courier's code) attaches the parcel to the
   hand socket.
6. **Prove it in play.** A test or a play session that runs, vaults and grabs: `unreal-automation-tests`.

## The verdicts

No script ships here: the check is that the C++ compiles (`unreal-compile-loop`) and that the
Blueprint compiles and plays. In a run, read:

| Sign | Means |
|---|---|
| `PlayVault()` returns more than 0 | the montage started |
| `OnVaultEnded(false)` | it finished; `true` is an interruption |
| `IsVaultWindowOpen()` true only between the window's ends | the notify state and the end handler agree |
| `OnParcelGrabbed` once per grab | the notify fires at its frame, on this courier only |

## Traps

- **Gather in `NativeUpdateAnimation`, derive in the thread-safe update.** The thread-safe update
  runs on a worker thread: no actor, component or object pointer there, only the copies.
- **`TryGetPawnOwner()` can be null**; guard it, or the clip editor's preview breaks.
- **A montage plays only through a slot.** No Slot node in the AnimGraph, no visible montage.
- **One slot group, one montage.** A montage started on a group that is running one stops it.
- **Pass every argument to `Montage_Play` and `PlayAnimMontage`**, and treat a return of `0.f` as
  a montage that did not play.
- **`OnMontageEnded` fires for every montage**: compare the montage, bind once, and the handler
  is a `UFUNCTION()`.
- **Root motion needs both halves**: Enable Root Motion on the clip and a Root Motion Mode that
  takes it. For network play, root motion from montages only.
- **A notify reaches the character through the mesh it is given**: cast that mesh's anim
  instance and keep the state there.

## Related skills

- `unreal-rigged-character` → `reference/retargeting.md`: retargeting; sockets and the spring chains' nodes beside it
- `unreal-asset-import` → `reference/fbx-options.md`: the clips onto the courier's skeleton
- `unreal-gameplay-framework`: the courier character that owns the mesh
- `unreal-gas`: montages played from the vault ability
- `unreal-replication` → `reference/rpcs.md`: the Play Montage call in a networked game
- `unreal-compile-loop` → `reference/build-commands.md`: building the C++ files
- `blender-retarget` → `reference/engine-handoff.md`: the clips and their root travel

Files in this skill

  • SKILL.md5.1 KB
  • reference/anim-instance.md4.4 KB
  • reference/montages.md6.4 KB
  • reference/notifies.md4.4 KB
  • templates/CourierAnimInstance.cpp1.9 KB
  • templates/CourierAnimInstance.h2.6 KB
  • templates/ParcelGrabNotify.cpp597 B
  • templates/ParcelGrabNotify.h439 B
  • templates/VaultWindowNotifyState.cpp969 B
  • templates/VaultWindowNotifyState.h634 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.