Abstract class for animation players. Each player define a way of playing an animation on an animator.
More...
|
| AvatarReadyAnimationPlayer (string path, Animator animator) |
| Create a player for a type of animation.
|
|
virtual void | PlayAnimation (bool fromStart=true) |
| Check if animation is ready to play and start playing.
|
|
virtual void | UpdateAnimation () |
| Called every frame.
|
|
void | UpdatePose (float deltaTime=0) |
| Update pose of the avatar. If logic needs to run every frame while the animation is playing, set it here.
|
|
void | ClearAnimation () |
| Called before ending the player. Is called when on behaviour's OnDisable or when player is changed.
|
|
float | GetDuration () |
| Get duration of the Animation.
|
|
float | GetCurrentTime () |
| Get current time of the animation.
|
|
void | SetCurrentTime (float time) |
| Set the current time of the animation.
|
|
void | PauseAnimation () |
| Pause the animation being played.
|
|
|
bool | IsInitialized |
|
bool | IsPlaying |
|
bool | IsLoop |
|
|
bool | SetupAnimation () |
| Fetch animation asset and get things ready for play.
|
|
void | SetAnimationAtStart () |
| Set the animation at start.
|
|
void | LoopAnimation () |
| Check if animation has finished and/or set animation at start.
|
|
|
string | path |
|
Animator | animator |
|
Abstract class for animation players. Each player define a way of playing an animation on an animator.
◆ AvatarReadyAnimationPlayer()
Inria.Avatar.AvatarReady.AvatarReadyAnimationPlayer.AvatarReadyAnimationPlayer |
( |
string | path, |
|
|
Animator | animator ) |
|
inline |
Create a player for a type of animation.
- Parameters
-
path | name of the animation source to use. Full path is generated depending of the animation type |
animator | Animator of the avatar to play the animation on |
◆ SetupAnimation()
bool Inria.Avatar.AvatarReady.AvatarReadyAnimationPlayer.SetupAnimation |
( |
| ) |
|
|
abstractprotected |
Fetch animation asset and get things ready for play.
- Returns
- Result of the setup
◆ PlayAnimation()
virtual void Inria.Avatar.AvatarReady.AvatarReadyAnimationPlayer.PlayAnimation |
( |
bool | fromStart = true | ) |
|
|
inlinevirtual |
◆ UpdateAnimation()
virtual void Inria.Avatar.AvatarReady.AvatarReadyAnimationPlayer.UpdateAnimation |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file:
- AvatarReadyAnimationPlayer.cs