Save Cached Pose
Caches a pose for later use
UAnimGraphNode_SaveCachedPose
FAnimNode_SaveCachedPose
Caches an evaluated pose output of another node for later use. This ensures that nodes are evaluated only once during graph evaluation.
The node will only be appear with its cache name, only one input and no outputs. The cached pose can then be used using the Use Cached Pose node, which effectively acts as an output pose of the cache.
The node saves the pose to a cache by name that can be specified in the details panel. The nodes name and the caches name will be synchronized by unreal so that changing one changes the other.
While unreal allows cached poses to be used in state machines, they cannot be saved in a state machine.
On cache name uniqueness
While pose caches need to be uniquely named, there is a way to trick unreal with this.
By default, if a node is being renamed via their nodes Name
property, unreal will validate the result and not allow duplicates.
If the name is changed via the Cache Name
property and just synchronized, the engine will not validate this and will allow duplicate names, at least as of UE5.3.
This is an issue because if multiple caches have the same name, all nodes using that cache will only pick one of the options and ignore the other poses saved to a cache with the same name.