EventComponent

This is a node component that performs the process of notifying the node that an event has arrived.
Used to wait for Unity messages (such as OnCollisionEnter) or input events.

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

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.