> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/nodes/tasks/unity/send-message.md).

# Send Message

Node description and basic instructions

Calls the method named Method Name on every MonoBehaviour in reciver GameObject.

{% hint style="warning" %}
Note that messages will not be sent to inactive objects (ie, those that have been deactivated in the editor or with the [SetActive](https://docs.unity3d.com/ScriptReference/GameObject.SetActive.html) function).

*Consider creating a separate node to call a specific function. Send Message node uses Unity SendMessage API, frequent calls it can reduce performance.*
{% endhint %}

***

To create it, right-click on free space in Behaviour Tree window and select:&#x20;

* <mark style="color:purple;">**Create Node/Tasks/Unity/Send Message**</mark>

This task node has a number of fields, that are highlighted in picture below.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2FIa5lnWV52Fhp2hLvZO6m%2FSendMessage.png?alt=media&amp;token=1e84ea4f-eda0-4588-8f34-5c0c5937f6b5" alt=""><figcaption><p>Send message node</p></figcaption></figure>

### Fields

| 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                     |
