Summary
Stops all other animations on the same layer, plays the `clip`, and returns its state.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerComponent
Syntax
public AnimancerState Play(AnimationClip clip)
Remarks
The animation will continue playing from its current
Animancer.AnimancerState.Time.
To restart it from the beginning you can use ...Play(clip).Time = 0;.
This method is safe to call repeatedly without checking whether the `clip` was already playing.
Parameters
| Name | Type | Description |
|---|---|---|
| clip | AnimationClip |
Return Value
| Type | Description |
|---|---|
| AnimancerState |