XII Release 0.1.0
Loading...
Searching...
No Matches
xiiAnimGraphInstance Class Reference

Public Member Functions

void Reset ()
 Restart playback and clear parameters, retaining the selected graph.
void SetGraph (const xiiAnimGraphResourceHandle &hGraph)
const xiiAnimGraphResourceHandle & GetGraph () const
void SetFloat (xiiStringView sName, float fValue)
float GetFloat (const xiiTempHashedString &sName, float fFallback=0.0f) const
void SetBool (xiiStringView sName, bool bValue)
bool GetBool (const xiiTempHashedString &sName, bool bFallback=false) const
void Update (const xiiSkeletonResource &skeleton, xiiTime deltaTime, xiiAnimationPose &ref_pose)
 Instances own mutable playback state and require external synchronization.

Member Function Documentation

◆ SetGraph()

void xiiAnimGraphInstance::SetGraph ( const xiiAnimGraphResourceHandle & hGraph)

Changing the graph restarts playback while retaining instance parameters. Resource reloads restart playback on the next Update, even if node indices remain in range. Reassigning the same handle does not restart playback.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/AnimationSystem/AnimGraph/AnimGraphResource.h
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/AnimationSystem/AnimGraph/Implementation/AnimGraphInstance.cpp