Summary
Creates a state for the `transition` if it didn't already exist, then calls
Animancer.AnimancerComponent.Play(Animancer.AnimancerState)
or Animancer.AnimancerComponent.Play(Animancer.AnimancerState,System.Single,Animancer.FadeMode)
depending on ITransition.CrossFadeFromStart
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerComponent
Syntax
public AnimancerState Play(ITransition transition, float fadeDuration, FadeMode mode = FixedSpeed)
Remarks
This method is safe to call repeatedly without checking whether the `transition` was already playing.
Parameters
Name | Type | Description |
---|---|---|
transition | ITransition | |
fadeDuration | float | |
mode | FadeMode |
Return Value
Type | Description |
---|---|
AnimancerState |