Interface IAnimStateMachine<E>
Interface to represent state machine with a reference to an animator.
Inherited Members
Namespace: nickmaltbie.StateMachineUnity
Assembly: cs.temp.dll.dll
Syntax
public interface IAnimStateMachine<E> : IStateMachine<E>
Type Parameters
Name | Description |
---|---|
E |
Properties
CurrentAnimationState
Current target animation state for the animator.
Declaration
int CurrentAnimationState { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
CrossFade(AnimSMRequest, Int32)
Set the animation state of the anim state machine using a normalized transition time.
Declaration
void CrossFade(AnimSMRequest animState, int layerIdx = 0)
Parameters
Type | Name | Description |
---|---|---|
AnimSMRequest | animState | Description of animation state to transition anim state machine into. |
Int32 | layerIdx | Layer to trigger animation in animator. |
GetAnimator()
Gets the animator associated with this state machine.
Declaration
Animator GetAnimator()
Returns
Type | Description |
---|---|
Animator | Get the animator associated with this state machine. |