Open 3D Engine EMotionFX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
EMotionFX::NodeDataAutoRefCountMixin Class Reference

#include <AnimGraphNodeData.h>

Inherited by EMotionFX::AnimGraphStateMachine::UniqueData.

Public Member Functions

void ClearRefCounts ()
 
void IncreaseDataRefCountForNode (AnimGraphNode *node, AnimGraphInstance *animGraphInstance)
 
void DecreaseDataRefCounts (AnimGraphInstance *animGraphInstance)
 
const AZStd::vector< AnimGraphNode * > & GetDataRefIncreasedNodes () const
 
void IncreasePoseRefCountForNode (AnimGraphNode *node, AnimGraphInstance *animGraphInstance)
 
void DecreasePoseRefCounts (AnimGraphInstance *animGraphInstance)
 
const AZStd::vector< AnimGraphNode * > & GetPoseRefIncreasedNodes () const
 

Protected Attributes

AZStd::vector< AnimGraphNode * > m_dataRefCountIncreasedNodes
 
AZStd::vector< AnimGraphNode * > m_poseRefCountIncreasedNodes
 

Detailed Description

This mixin can be used for unique datas on anim graph nodes that manually need to increase pose and data ref counts for nodes a hierarchy level up or neighbor nodes with a risk of the node not being output. An example would be the state machine where the active nodes can change within the update method due to ending or newly started transitions. We need some way to keep track of the nodes that increased the data and pose ref counts at a level up in the hierarchy.


The documentation for this class was generated from the following file: