This player can be used to play not humanoid animation on a GameObject. It's mainly meant to replay animation recorded on a VrRig using the RecordTrackerAnimationFeature.
More...
|
| AnimationTrackerJson (string path, Animator animator) |
|
override void | ClearAnimation () |
|
override float | GetCurrentTime () |
|
override float | GetDuration () |
|
override void | SetCurrentTime (float time) |
|
override void | UpdatePose (float deltaTime=0) |
|
override void | PauseAnimation () |
|
| 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.
|
|
|
override bool | SetupAnimation () |
|
override void | LoopAnimation () |
|
override void | SetAnimationAtStart () |
|
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.
|
|
|
ClipInfo | CurrentClipInfo [get] |
|
string | Path [get] |
|
|
void | ReadAnimation () |
|
bool | CheckPath () |
|
StreamReader | OpenFile () |
|
void | LoadJson (StreamReader file) |
|
void | ParseClipInfo (ClipInfo clipInfo) |
|
void | SetTransform (Transform target) |
|
|
ClipInfo | currentClipInfo |
|
Dictionary< Transform, AnimationCurve[]> | animationCurves |
|
float | currentTime |
|
float | duration |
|
|
bool | IsInitialized |
|
bool | IsPlaying |
|
bool | IsLoop |
|
string | path |
|
Animator | animator |
|
This player can be used to play not humanoid animation on a GameObject. It's mainly meant to replay animation recorded on a VrRig using the RecordTrackerAnimationFeature.
The documentation for this class was generated from the following file:
- AvatarReadyAnimationPlayer.cs