struct

AnimationControllerSerializer

MDF serialization for AnimationController assets (.animgraph). The controller is the animation-graph asset the editor authors: states, transitions, conditions, blend spaces and parameters all round-trip through here so the runtime can load an authored graph and the editor can save one.

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

Editor-only per-state canvas positions live alongside the states in the same document (parallel to GetStates()): pass nodePositions on save to persist the graph layout, and a non-null outNodePositions on load to read it back. The runtime ignores the positions.

Public functions

ReturnsNameDescription
std::stringSerializeToString
boolDeserializeFromString
boolSaveToFile
boolLoadFromFile

Function details

SerializeToString

C++
static std::string SerializeToString(const AnimationController& controller, const std::vector<Vec2>* nodePositions = nullptr)

DeserializeFromString

C++
static bool DeserializeFromString(const std::string& text, AnimationController& outController, std::vector<Vec2>* outNodePositions = nullptr)

SaveToFile

C++
static bool SaveToFile(const AnimationController& controller, const std::string& path, const std::vector<Vec2>* nodePositions = nullptr)

LoadFromFile

C++
static bool LoadFromFile(const std::string& path, AnimationController& outController, std::vector<Vec2>* outNodePositions = nullptr)
Generated from Animation/AnimationControllerSerializer.h via animation.json · Oct 26, 2026Version 1.0.0