Class SimpleAnimationPlayer
This is a Playable used to play Animations from its Animation Clip List using names or indices as parameters.
Namespace: TriLibCore.Playables
Assembly: TriLibCore.dll
Syntax
public class SimpleAnimationPlayer : MonoBehaviour
Fields
AnimationClips
Source animation clips.
Declaration
public IList<AnimationClip> AnimationClips
Field Value
| Type | Description |
|---|---|
| IList<AnimationClip> |
Methods
PlayAnimation(int)
Plays the Animation Clip with the given index.
Declaration
public void PlayAnimation(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The Animation Clip index. |
PlayAnimation(string)
Plays the Animation Clip with the given index.
Declaration
public void PlayAnimation(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The Animation Clip name. |