Summary
A state for a
Animancer.Examples.StateMachines.CharacterState.Character
.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Examples .StateMachines - Interfaces
- Base Types
-
- MonoBehaviour
- StateBehaviour
- Derived Types
graph BT
Type-->Base0["StateBehaviour"]
click Base0 "/animancer-v7-4/api/Animancer.FSM/StateBehaviour"
Base0-->Base1["MonoBehaviour"]
Type-.->Interface0["IState"]
click Interface0 "/animancer-v7-4/api/Animancer.FSM/IState"
Type["CharacterState"]
class Type type-node
Derived0["IdleState"]-->Type
click Derived0 "/animancer-v7-4/api/Animancer.Examples.StateMachines/IdleState"
Derived1["FlinchState"]-->Type
click Derived1 "/animancer-v7-4/api/Animancer.Examples.StateMachines/FlinchState"
Derived2["ActionState"]-->Type
click Derived2 "/animancer-v7-4/api/Animancer.Examples.StateMachines/ActionState"
Derived3["MoveState"]-->Type
click Derived3 "/animancer-v7-4/api/Animancer.Examples.StateMachines/MoveState"
Derived4["HybridMoveState"]-->Type
click Derived4 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers/HybridMoveState"
Derived5["EquipState"]-->Type
click Derived5 "/animancer-v7-4/api/Animancer.Examples.StateMachines/EquipState"
Derived6["AttackState"]-->Type
click Derived6 "/animancer-v7-4/api/Animancer.Examples.StateMachines/AttackState"
Derived7["HybridIdleState"]-->Type
click Derived7 "/animancer-v7-4/api/Animancer.Examples.AnimatorControllers/HybridIdleState"
Syntax
[AddComponentMenu(Strings.ExamplesMenuPrefix + "Characters - Character State")]
[HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(StateMachines) + "/" + nameof(CharacterState))]
public abstract class CharacterState : StateBehaviour, IState
Examples
Attributes
Type | Description |
---|---|
AddComponentMenu | |
HelpURLAttribute |
Properties
Name | Value | Summary |
---|---|---|
CanEnterState | bool |
[
Animancer.FSM.IState.CanEnterState ]
Determines whether the Animancer.FSM.StateMachine`1 can enter this state.
Always returns true unless overridden.
Inherited from StateBehaviour
|
CanExitState | bool |
[
Animancer.FSM.IState.CanExitState ]
Determines whether the Animancer.FSM.StateMachine`1 can exit this state.
Always returns true unless overridden.
|
CanInterruptSelf | bool | |
Character | Character | |
Priority | Character |
Methods
Name | Value | Summary |
---|---|---|
OnEnterState |
void |
[
Animancer.FSM.IState.OnEnterState ]
Asserts that this component isn't already enabled, then enables it.
Inherited from StateBehaviour
|
OnExitState |
void |
[
Animancer.FSM.IState.OnExitState ]
Asserts that this component isn't already disabled, then disables it.
Inherited from StateBehaviour
|
OnValidate |
void |
[Editor-Only] States start disabled and only the current state gets enabled at runtime.
|