AvatarReady
Loading...
Searching...
No Matches
Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer Class Reference
Inheritance diagram for Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer:

Public Types

enum  AnimationType { Anim , Json , Controller , TrackerJson }
 

Public Member Functions

void Start ()
 
void SetupAnimation ()
 Create Player depending of animation type.
 
void Play ()
 Inspector context menu, allow starting animation from editor.
 
void Update ()
 
void OnDestroy ()
 
void UpdatePose (float deltaTime=0)
 Manualy update the animation.
 
float GetDuration ()
 Get Player animation's duration.
 
float GetCurrentTime ()
 Get Player animation's current time.
 
void SetCurrentTime (float time)
 Set current time on Player.
 
void PauseAnimation ()
 Pause the player's animation.
 

Public Attributes

AnimationType TypeOfAnimation
 
string Path
 

Properties

bool Loop [get, set]
 If player is not null, set IsLoop value, also store value in loopPlayer. This is done to allow modifying the value before a player has been instanciated.
 
PlayableGraph Graph [get]
 
bool IsPlaying [get]
 
bool IsInitialized [get]
 
AvatarReadyAnimationPlayer Player [get, private set]
 

Private Attributes

bool loopPlayer
 
string currentPath
 

Member Function Documentation

◆ SetupAnimation()

void Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer.SetupAnimation ( )
inline

Create Player depending of animation type.

Parameters
forceReplace current animation clip if one is allready specified
Returns
Was setup successful

◆ UpdatePose()

void Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer.UpdatePose ( float deltaTime = 0)
inline

Manualy update the animation.

Parameters
deltaTimeOptional delta time parameter

◆ GetDuration()

float Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer.GetDuration ( )
inline

Get Player animation's duration.

Returns
Duration of the animation, -1 if Player is null

◆ GetCurrentTime()

float Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer.GetCurrentTime ( )
inline

Get Player animation's current time.

Returns
Current time of the animation, -1 if Player is null

◆ SetCurrentTime()

void Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer.SetCurrentTime ( float time)
inline

Set current time on Player.

Parameters
timeNew current time of the animation. Value will be clamped to animation duration

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