CharacterBrain Class

Summary

Base class for components that decide what a PlatformerGameKit.Characters.Character wants to do.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit.Characters.Brains
Base Types
  • MonoBehaviour
Derived Types
graph BT Type-->Base0["MonoBehaviour"] Type["CharacterBrain"] class Type type-node Derived0["BehaviourTreeBrain"]-->Type click Derived0 "/platformer/api/PlatformerGameKit.Characters.Brains/BehaviourTreeBrain" Derived1["PlayerBrain"]-->Type click Derived1 "/platformer/api/PlatformerGameKit.Characters.Brains/PlayerBrain"

Syntax

[AddComponentMenu(MenuPrefix + "Character Brain")]
[PlatformerHelpUrl(typeof(CharacterBrain))]
[DefaultExecutionOrder(DefaultExecutionOrder)]
public abstract class CharacterBrain : MonoBehaviour

Remarks

Documentation: Brains

Attributes

Type Description
AddComponentMenu
PlatformerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Platformer Game Kit's documentation.
DefaultExecutionOrder

Fields

Name Constant Value Summary
DefaultExecutionOrder -10000
Run inputs before everything else.
static
MenuPrefix Platformer Game Kit/Characters/Brains/
The menu prefix for UnityEngine.AddComponentMenu.
static

Properties

Name Value Summary
Character Character
The PlatformerGameKit.Characters.Character this brain is controlling.

Methods

Name Value Summary
OnValidate() void
[Editor-Only] Ensures that all fields have valid values and finds missing components nearby.