# TreeNodeBehaviour

Class in Arbor.BehaviourTree / Inherits from: PlayableBehaviour
Implements interfaces: IPlayableBehaviourCallbackReceiver

## Description

Base class that defines the behavior of TreeBehaviourNode.

## Properties

Property Name | Description
--- | ---
behaviourTree | Gets the behaviour tree.
treeNode | Get the TreeNodeBase.

## Methods

Method Name | Description
--- | ---
OnAbort | This function is called when the own node is aborted.
OnAwake | This function is called when the own node becomes active for the first time.
OnEnd | This function is called when the own node ends.
OnFixedUpdate | This function is called in FixedUpdate while the local node is active.
OnInitializeEnabled | Called to perform enabled initialization.
OnLateUpdate | This function is called in LateUpdate while the local node is active.
OnStart | This function is called when the own node becomes active.
OnUpdate | This function is called when updating every frame while the own node is active.

## Inherited Members

### Fields

Field Name | Description
--- | ---
expanded | Expanded on ArborEditorWindow.
schedulerDestroyTiming | Timing to destroy the scheduler.
schedulerUpdateTiming | Scheduler update timing

### Properties

Property Name | Description
--- | ---
calculatorSlotFieldCount | Number of DataSlotField
CancellationTokenOnEnd | Cancel token generated when exiting a node
dataSlotCount | Number of DataSlot
dataSlotFieldCount | Number of DataSlotField
node | Get the Node.
nodeGraph | Gets the NodeGraph.
nodeID | Gets the node identifier.
scheduler | Get scheduler.
schedulerProgress | Get the progress of the scheduler

### Events

Event Name | Description
--- | ---
onValidate | Callback called during OnValidate

### Methods

Method Name | Description
--- | ---
ContainsSlot | Determine if the Data Slot is included.
GetCalculatorSlotField | Get DataSlotField.
GetDataSlot | Get DataSlot.
GetDataSlotField | Get DataSlotField.
GetOrCreateScheduler | Get the scheduler. If there is no scheduler, create one.
Initialize | For Editor.
OnCreated | Raises the created event.
OnGraphPause | This function is called when the graph is paused.
OnGraphResume | This function is called when the graph resumes.
OnGraphStop | This function is called when the graph stops.
OnPreDestroy | Raises the pre destroy event.
OnRebuildFields | It is called when reconstructing data about fields.
RebuildCalculatorSlotFields | Rebuild the DataSlotField.
RebuildDataSlotFieldIfNecessary | Check if DataSlot exists and rebuild if necessary.
RebuildDataSlotFields | Rebuild the DataSlotField.
RebuildFields | For internal.
UpdateDataLink | Manually update DataLink values.Update the value of DataLink field of DataLinkUpdateTiming.Manual.
Yield | Gets an awaitable asynchronous task that waits until the next OnUpdate call.

### Static Methods

Method Name | Description
--- | ---
CreateNodeBehaviour | For Editor.
Destroy | Destroy NodeBehaviour.