Animancer v6.0 is currently available for testing.

Creature Class

Summary

A centralised group of references to the common parts of a creature and a state machine for their actions.
Assembly
Animancer.dll
Namespace
Animancer.Examples.StateMachines.Brains
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["Creature"] class Type type-node

Syntax

[AddComponentMenu(Strings.ExamplesMenuPrefix + "Brains - Creature")]
[HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(StateMachines) + "." + nameof(Brains) + "/" + nameof(Creature))]
[DefaultExecutionOrder(-5000)]
public sealed class Creature : MonoBehaviour

Examples

Brains

Attributes

Type Description
AddComponentMenu
HelpURLAttribute
DefaultExecutionOrder

Properties

Name Value Summary
Animancer AnimancerComponent
Brain CreatureBrain
ForceEnterIdleState Action
Forces the Animancer.Examples.StateMachines.Brains.Creature.StateMachine to return to the Animancer.Examples.StateMachines.Brains.Creature.Idle state.
Idle CreatureState
Rigidbody Rigidbody
StateMachine StateMachine<CreatureState>
The Finite State Machine that manages the actions of this creature.
Stats CreatureStats