> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/mevent-listener.md).

# MEvent Listener

## Overview

The MEvent Listener Component is a List of [**MEvents** ](/animal-controller/scriptable-architecture/scriptables/mevents.md)**Assets.**&#x20;

It uses Unity Events to send the data received by each [**MEvent** ](/animal-controller/scriptable-architecture/scriptables/mevents.md)to all the components attached to a gameObject.

Is heavily based on the Talk about [**Scriptable Architecture**](https://www.youtube.com/watch?v=raQ3iHhE_Kk) by Ryan Ripple

![](/files/-M-AuDg7mHTnkkhouAi7)

{% hint style="danger" %}
**IMPORTANT:** Events on the List should **NOT** repeat
{% endhint %}

## Properties

![](/files/-M0TdCdLxLdhZ-se2ETe)

When a **MEvent** is selected on the list it will show the Description of the [**MEvent**](/animal-controller/scriptable-architecture/scriptables/mevents.md) on a Green Help Box. You will also gain access to the different type of Responses.

### Void Response

Receive an void value from the  event.

### Bool Response

Receive an bool value from the event.

### Float Response

Receive an float value from the event.

### Int Response

Receive an integer value from the event.

#### Use Advanced Integer&#x20;

By enabling this option the Int Comparer list will be showed. That way you can response to an specific value of the Integer value sent by the event.

![](/files/-M0TfnksxldPx53wfSm2)

### String Response

Receive an string value from the event.

### GameObject(GO) Response

Receive an gameObject value from the event.

### Transform (T) Response

Receive an Transform value from the event.

### Vector3 (V3) Response

Receive an Vector3 value from the event.

### Vector2 (V2) Response

Receive an Vector2 value from the event.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/mevent-listener.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
