Animancer v6.0 is currently available for testing.

CreatureBrain Class

Summary

Base class for controlling the actions of a Animancer.Examples.StateMachines.Brains.Creature.
Assembly
Animancer.dll
Namespace
Animancer.Examples.StateMachines.Brains
Base Types
  • MonoBehaviour
Derived Types
graph BT Type-->Base0["MonoBehaviour"] Type["CreatureBrain"] class Type type-node Derived0["KeyboardBrain"]-->Type click Derived0 "/animancer/api/Animancer.Examples.StateMachines.Brains/KeyboardBrain" Derived1["MouseBrain"]-->Type click Derived1 "/animancer/api/Animancer.Examples.StateMachines.Brains/MouseBrain" Derived2["GolfMiniGame"]-->Type click Derived2 "/animancer/api/Animancer.Examples.AnimatorControllers/GolfMiniGame"

Syntax

[AddComponentMenu(Strings.ExamplesMenuPrefix + "Brains - Creature Brain")]
[HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(StateMachines) + "." + nameof(Brains) + "/" + nameof(CreatureBrain))]
public abstract class CreatureBrain : MonoBehaviour

Examples

Brains

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Properties

Name Value Summary
Creature Creature
IsRunning bool
Indicates whether this brain wants to run.
MovementDirection Vector3
The direction this brain wants to move.