Send Message
Node description and basic instructions
Last updated
Node description and basic instructions
Last updated
Calls the method named Method Name on every MonoBehaviour in reciver GameObject.
Note that messages will not be sent to inactive objects (ie, those that have been deactivated in the editor or with the SetActive function).
Consider creating a separate node to call a specific function. Send Message node uses Unity SendMessage API, frequent calls it can reduce performance.
To create it, right-click on free space in Behaviour Tree window and select:
Create Node/Tasks/Unity/Send Message
This task node has a number of fields, that are highlighted in picture below.
Name | Description |
---|---|
Node Name | Name of node |
Ignore Abort Self | Whether node ignores abort self or not |
Receiver | The object on which the method will be called |
Method Name | Method to call |
Value key | Optional method parameter |