Decorator

Class in Arbor.BehaviourTree / Inherits from: TreeNodeBehaviour

Description

A class that defines decoration for composite nodes and action nodes. Inherit and use it.

Remarks

Available Attributes :

Fields

Field Name Description
onConditionChanged Called when the currentCondition changes

Properties

Property Name Description
abortFlags Abort flags
behaviourEnabled Gets or sets a value indicating whether [behaviour enabled].
currentCondition Current condition
isRevaluation It returns whether to reevaluate.
logicalOperation Get the logical operation method with the result of the previous Decorator when there are multiple Decorators.

Methods

Method Name Description
HasConditionCheck It is judged whether Condition Check should be performed.
OnConditionCheck Perform ConditionCheck.
OnFinishExecute FinishExecute callback.
You can change the result of the execution result.
OnRepeatCheck Callback to decide whether to repeat again when the self node finishes.
OnRevaluationEnter Called when entering the re-evaluation target
OnRevaluationExit Called when exiting the re-evaluation target

Static Methods

Method Name Description
Create Create Decorator

Enums

Type Name Description
Condition The condition of the decorator

Inherited Members

Fields

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

Properties

Property Name Description
behaviourTree Gets the behaviour tree.
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
treeNode Get the TreeNodeBase.

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.
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.
OnCreated Raises the created event.
OnEnd This function is called when the own node ends.
OnFixedUpdate This function is called in FixedUpdate while the local node is active.
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.
OnInitializeEnabled Called to perform enabled initialization.
OnLateUpdate This function is called in LateUpdate while the local node is active.
OnPreDestroy Raises the pre destroy event.
OnRebuildFields It is called when reconstructing data about fields.
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.
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.