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

Inherits IUiAnimationSystem.

Public Member Functions

void Release () override
 Release UI animation system.
 
bool Load (const char *pszFile, const char *pszMission) override
 Loads all nodes and sequences from a specific file (should be called when the level is loaded).
 
ISystem * GetSystem () override
 
IUiAnimTrackCreateTrack (EUiAnimCurveType type) override
 
IUiAnimSequenceCreateSequence (const char *sequence, bool bLoad=false, uint32 id=0) override
 
IUiAnimSequenceLoadSequence (const char *pszFilePath)
 
IUiAnimSequenceLoadSequence (XmlNodeRef &xmlNode, bool bLoadEmpty=true) override
 
void AddSequence (IUiAnimSequence *pSequence) override
 
void RemoveSequence (IUiAnimSequence *pSequence) override
 
IUiAnimSequenceFindSequence (const char *sequence) const override
 
IUiAnimSequenceFindSequenceById (uint32 id) const override
 
IUiAnimSequenceGetSequence (int i) const override
 
int GetNumSequences () const override
 
IUiAnimSequenceGetPlayingSequence (int i) const override
 
int GetNumPlayingSequences () const override
 
bool IsCutScenePlaying () const override
 
uint32 GrabNextSequenceId () override
 
int OnSequenceRenamed (const char *before, const char *after) override
 
int OnCameraRenamed (const char *before, const char *after) override
 
bool AddUiAnimationListener (IUiAnimSequence *pSequence, IUiAnimationListener *pListener) override
 
bool RemoveUiAnimationListener (IUiAnimSequence *pSequence, IUiAnimationListener *pListener) override
 
void RemoveAllSequences () override
 
void PlaySequence (const char *sequence, IUiAnimSequence *parentSeq=NULL, bool bResetFX=true, bool bTrackedSequence=false, float startTime=-FLT_MAX, float endTime=-FLT_MAX) override
 
void PlaySequence (IUiAnimSequence *seq, IUiAnimSequence *parentSeq=NULL, bool bResetFX=true, bool bTrackedSequence=false, float startTime=-FLT_MAX, float endTime=-FLT_MAX) override
 
void PlayOnLoadSequences () override
 
bool StopSequence (const char *sequence) override
 
bool StopSequence (IUiAnimSequence *seq) override
 
bool AbortSequence (IUiAnimSequence *seq, bool bLeaveTime=false) override
 
void StopAllSequences () override
 
void StopAllCutScenes () override
 
void Pause (bool bPause)
 
void Reset (bool bPlayOnReset, bool bSeekToStart) override
 
void StillUpdate () override
 
void PreUpdate (const float dt) override
 
void PostUpdate (const float dt) override
 
void Render () override
 
bool IsPlaying (IUiAnimSequence *seq) const override
 
void Pause () override
 
void Resume () override
 
void SetRecording (bool recording) override
 
bool IsRecording () const override
 
void SetCallback (IUiAnimationCallback *pCallback) override
 
IUiAnimationCallbackGetCallback () override
 
void Callback (IUiAnimationCallback::ECallbackReason Reason, IUiAnimNode *pNode)
 
void Serialize (XmlNodeRef &xmlNode, bool bLoading, bool bRemoveOldNodes=false, bool bLoadEmpty=true) override
 
void InitPostLoad (bool remapIds, LyShine::EntityIdMap *entityIdMap) override
 
void SetSequenceStopBehavior (ESequenceStopBehavior behavior) override
 
IUiAnimationSystem::ESequenceStopBehavior GetSequenceStopBehavior () override
 
float GetPlayingTime (IUiAnimSequence *pSeq) override
 
bool SetPlayingTime (IUiAnimSequence *pSeq, float fTime) override
 
float GetPlayingSpeed (IUiAnimSequence *pSeq) override
 
bool SetPlayingSpeed (IUiAnimSequence *pSeq, float fTime) override
 
bool GetStartEndTime (IUiAnimSequence *pSeq, float &fStartTime, float &fEndTime) override
 
bool SetStartEndTime (IUiAnimSequence *pSeq, const float fStartTime, const float fEndTime) override
 
void GoToFrame (const char *seqName, float targetFrame) override
 
void SerializeNodeType (EUiAnimNodeType &animNodeType, XmlNodeRef &xmlNode, bool bLoading, const uint version, int flags)
 
void SerializeParamType (CUiAnimParamType &animParamType, XmlNodeRef &xmlNode, bool bLoading, const uint version) override
 
void SerializeParamData (UiAnimParamData &animParamData, XmlNodeRef &xmlNode, bool bLoading) override
 
const char * GetParamTypeName (const CUiAnimParamType &animParamType)
 
void OnCameraCut ()
 
void NotifyTrackEventListeners (const char *eventName, const char *valueName, IUiAnimSequence *pSequence) override
 
- Public Member Functions inherited from IUiAnimationSystem
virtual EUiAnimNodeType GetNodeTypeFromString (const char *pString) const =0
 
virtual CUiAnimParamType GetParamTypeFromString (const char *pString) const =0
 

Static Public Member Functions

static void Reflect (AZ::SerializeContext *serializeContext)
 

Additional Inherited Members

- Public Types inherited from IUiAnimationSystem
enum  ESequenceStopBehavior { eSSB_LeaveTime = 0 , eSSB_GotoEndTime = 1 , eSSB_GotoStartTime = 2 }
 

Member Function Documentation

◆ AbortSequence()

bool UiAnimationSystem::AbortSequence ( IUiAnimSequence pSequence,
bool  bLeaveTime = false 
)
overridevirtual

Aborts a currently playing sequence. Ignored if sequence is not playing. Calls IUiAnimationListener with aborted event (done event is NOT called) Returns true if sequence has been aborted. false otherwise

Parameters
sequencePointer to Valid sequence to stop.
bLeaveTimeIf false, uses default stop behavior, otherwise leaves the sequence at time

Implements IUiAnimationSystem.

◆ Reset()

void UiAnimationSystem::Reset ( bool  bPlayOnReset,
bool  bSeekToStart 
)
overridevirtual

Resets playback state of UI animation system, usually called after loading of level,

Implements IUiAnimationSystem.


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