Summary
Creates a state for the `transition` if it didn't already exist, then calls
Animancer.AnimancerLayer.Play(Animancer.AnimancerState)
or Animancer.AnimancerLayer.Play(Animancer.AnimancerState,System.Single,Animancer.FadeMode)
depending on the Animancer.ITransition.FadeDuration
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerLayer
Syntax
public AnimancerState Play(ITransition transition, float fadeDuration, FadeMode mode = default(FadeMode))
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 |