IState Interface

Summary

A state that can be used in a Animancer.FSM.StateMachine`1.
graph BT Type["IState"] class Type type-node Implementing0["RespawnState"]-.->Type click Implementing0 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/RespawnState" Implementing1["State"]-.->Type click Implementing1 "/animancer-v7-4/api/Animancer.FSM/State" Implementing2["LocomotionState"]-.->Type click Implementing2 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/LocomotionState" Implementing3["IPrioritizable"]-.->Type click Implementing3 "/animancer-v7-4/api/Animancer.FSM/IPrioritizable" Implementing4["IdleState"]-.->Type click Implementing4 "/animancer-v7-4/api/Animancer.Examples.StateMachines/IdleState" Implementing5["DieState"]-.->Type click Implementing5 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/DieState" Implementing6["AirborneState"]-.->Type click Implementing6 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/AirborneState" Implementing7["IdleState"]-.->Type click Implementing7 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/IdleState" Implementing8["FlinchState"]-.->Type click Implementing8 "/animancer-v7-4/api/Animancer.Examples.StateMachines/FlinchState" Implementing9["CharacterState"]-.->Type click Implementing9 "/animancer-v7-4/api/Animancer.Examples.StateMachines/CharacterState" Implementing10["ActionState"]-.->Type click Implementing10 "/animancer-v7-4/api/Animancer.Examples.StateMachines/ActionState" Implementing11["MoveState"]-.->Type click Implementing11 "/animancer-v7-4/api/Animancer.Examples.StateMachines/MoveState" Implementing12["HybridMoveState"]-.->Type click Implementing12 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers/HybridMoveState" Implementing13["CharacterState"]-.->Type click Implementing13 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/CharacterState" Implementing14["EquipState"]-.->Type click Implementing14 "/animancer-v7-4/api/Animancer.Examples.StateMachines/EquipState" Implementing15["AttackState"]-.->Type click Implementing15 "/animancer-v7-4/api/Animancer.Examples.StateMachines/AttackState" Implementing16["FlinchState"]-.->Type click Implementing16 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/FlinchState" Implementing17["StateBehaviour"]-.->Type click Implementing17 "/animancer-v7-4/api/Animancer.FSM/StateBehaviour" Implementing18["HybridIdleState"]-.->Type click Implementing18 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers/HybridIdleState" Implementing19["LandingState"]-.->Type click Implementing19 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/LandingState" Implementing20["IOwnedState<TState>"]-.->Type click Implementing20 "/animancer-v7-4/api/Animancer.FSM/IOwnedState_1" Implementing21["DelegateState"]-.->Type click Implementing21 "/animancer-v7-4/api/Animancer.FSM/DelegateState" Implementing22["AttackState"]-.->Type click Implementing22 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers.GameKit/AttackState"

Syntax

public interface IState

Remarks

The Animancer.FSM.StateExtensions class contains various extension methods for this interface.

Documentation: Finite State Machines

Properties

Name Value Summary
CanEnterState bool
Can this state be entered?
CanExitState bool
Can this state be exited?

Methods

Name Value Summary
OnEnterState() void
Called when this state is entered.
OnExitState() void
Called when this state is exited.

Extension Methods

Name Value Summary
GetNextState<IState>() TState
[Animancer Extension] Returns the Animancer.FSM.StateChange`1.NextState.
GetPreviousState<IState>() TState
[Animancer Extension] Returns the Animancer.FSM.StateChange`1.PreviousState.