CreatureState Class

Summary

A state for a Animancer.Examples.StateMachines.InterruptManagement.Creature which plays an animation and uses a Animancer.Examples.StateMachines.InterruptManagement.CreatureState.Priority enum to determine which other states can interrupt it.
graph BT Type-->Base0["StateBehaviour<CreatureState>"] Base0-->Base1["MonoBehaviour"] Type-.->Interface0["IState<CreatureState>"] Type["CreatureState"] class Type type-node

Syntax

[AddComponentMenu(Strings.ExamplesMenuPrefix + "Interrupt Management - Creature State")]
[HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(StateMachines) + "." + nameof(InterruptManagement) + "/" + nameof(CreatureState))]
public sealed class CreatureState : StateBehaviour<CreatureState>, IState<CreatureState>

Examples

Interrupt Management

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Methods

Name Value Summary
CanExitState(CreatureState) bool
Only allows a new state to be entered if it has equal or higher Animancer.Examples.StateMachines.InterruptManagement.CreatureState.Priority to this state.