class

FAnimGraph

Module
Animation
Header
#include "Animation/AnimGraph.h"
Namespace
Mowo

Properties

TypeNameDescription
std::vector<FAnimGraphNode>nodes
std::vector<FAnimGraphLink>links
uint64_tnextIdDefault 1.
uint64_tstructureVersionBumped by every mutator here (and by Deserialize / CopyFrom). An instance's compiled wiring is keyed on it, so an editor that edits nodes / links directly must call MarkStructureDirty() — a bone name changed in place would otherwise keep resolving to the old index. Default 1.

Public functions

ReturnsNameDescription
voidMarkStructureDirty
boolIsEmpty
boolHasWorkTrue when evaluating would change the pose: an Output node exists and its input chain is more than a bare StateMachine node.
uint64_tAddNode
voidRemoveNode
FAnimGraphNode*Find
const FAnimGraphNode*Find
uint64_tOutputNodeId
uint64_tConnectReplaces any existing link into (toNode, toSlot).
voidDisconnect
uint32_tInputCount
const char*NodeTypeName
voidPrimePoseAssetsPulls every .pose this graph names into FPoseAssetLibrary.
uint32_tBindClipIdsFills every clip reference's package id (Clip, Sequence Evaluator, Random Player candidates, additive reference, blend-space samples) from the clip its name resolves to, and leaves an id that already resolves alone.
boolEvaluateEvaluate the graph into out (local transforms, skeleton bone order).
voidSerializeMDF <-> graph, as "GraphNode"/"GraphLink" children of the given parent (the .animgraph AnimationController root).
boolDeserialize
voidCopyFrom

Function details

MarkStructureDirty

C++
void MarkStructureDirty()

IsEmpty

C++
bool IsEmpty() const

HasWork

C++
bool HasWork() const

True when evaluating would change the pose: an Output node exists and its input chain is more than a bare StateMachine node.

AddNode

C++
uint64_t AddNode(EAnimGraphNodeType type, const Vec2& pos)

RemoveNode

C++
void RemoveNode(uint64_t id)

Find

C++
FAnimGraphNode* Find(uint64_t id)

Find

C++
const FAnimGraphNode* Find(uint64_t id) const

OutputNodeId

C++
uint64_t OutputNodeId() const

Connect

C++
uint64_t Connect(uint64_t fromNode, uint64_t toNode, uint32_t toSlot)

Replaces any existing link into (toNode, toSlot). Returns the link id.

Disconnect

C++
void Disconnect(uint64_t linkId)

InputCount

C++
static uint32_t InputCount(EAnimGraphNodeType type)

NodeTypeName

C++
static const char* NodeTypeName(EAnimGraphNodeType type)

PrimePoseAssets

C++
void PrimePoseAssets() const

Pulls every .pose this graph names into FPoseAssetLibrary. Call it from the game thread before evaluating: the evaluator will load one itself, but it runs on job workers and the first touch would be a file read inside the parallel phase.

BindClipIds

C++
uint32_t BindClipIds(const std::vector<Ref<AnimationClip>>& clips)

Fills every clip reference's package id (Clip, Sequence Evaluator, Random Player candidates, additive reference, blend-space samples) from the clip its name resolves to, and leaves an id that already resolves alone. Game thread, like the controller's own ResolveClips: a saved graph then carries the ids forward. Returns how many ids it wrote.

Evaluate

C++
bool Evaluate(const FAnimGraphContext& ctx, std::vector<Mat4>& out) const

Evaluate the graph into out (local transforms, skeleton bone order). Nodes are memoized per call, so a node feeding two inputs evaluates — and advances its clock — exactly once per frame. Returns false when there is nothing to evaluate (no skeleton / no output node).

Serialize

C++
void Serialize(MdfNode& parent) const

MDF <-> graph, as "GraphNode"/"GraphLink" children of the given parent (the .animgraph AnimationController root).

Deserialize

C++
bool Deserialize(const MdfNode& parent)

CopyFrom

C++
void CopyFrom(const FAnimGraph& other)
Generated from Animation/AnimGraph.h via animation.json · Oct 26, 2026Version 1.0.0