EventComponent

This is a node component that performs the process of notifying the node that an event has arrived.
It is used to wait for Unity messages (such as OnCollisionEnter), input events, Custom Event, etc.

Behavior when set to node

Event

Event

Executes the connected node when an event occurs.

Task

Task

Transitions to the destination node when an event occurs.

BehaviorTree

BehaviorTree

Main

Returns the result to the parent node when the event occurs.

Additional properties

Property name Type Description
Result InputField<bool> Set the result to be returned when the event arrives.

State

State

Outputs a signal when an event occurs.

Additional properties

Property name Type Description
Result InputField<bool> Set the signal to be returned when the event arrives.
Completed OutputSignalPort Outputs Result as a signal when an event arrives.

Script generation

The script generation function uses ActionComponent for the following member access scripts.

  • field of type delegate
  • Field of type UnityEvent
  • Properties of delegate type *Property of type UnityEvent
  • event

For details, please refer to Script generation.