DelegateState Class

Summary

An Animancer.FSM.IState that uses delegates to define its behaviour.
Assembly
Animancer.dll
Namespace
Animancer.FSM
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IState"] click Interface0 "/animancer/api/Animancer.FSM/IState" Type["DelegateState"] class Type type-node

Syntax

public class DelegateState : IState

Remarks

Documentation: Finite State Machines

Fields

Name Constant Value Summary
canEnter
Determines whether this state can be entered. Null is treated as returning true.
canExit
Determines whether this state can be exited. Null is treated as returning true.
onEnter
Called when this state is entered.
onExit
Called when this state is exited.