|
enum | AnimationType { Anim
, Json
, Controller
, TrackerJson
} |
|
|
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.
|
|
|
AnimationType | TypeOfAnimation |
|
string | Path |
|
|
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] |
|
|
bool | loopPlayer |
|
string | currentPath |
|
◆ SetupAnimation()
void Inria.Avatar.AvatarReady.AvatarReadyAnimationReplayer.SetupAnimation |
( |
| ) |
|
|
inline |
Create Player depending of animation type.
- Parameters
-
force | Replace 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
-
deltaTime | Optional 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
-
time | New current time of the animation. Value will be clamped to animation duration |
The documentation for this class was generated from the following file:
- AvatarReadyAnimationReplayer.cs