---
description: Listen to the MEvents and respond to them via Unity Events
---

# MEvent Listener

## Overview

The MEvent Listener Component is a List of [**MEvents** ](mevents)**Assets.**&#x20;

It uses Unity Events to send the data received by each [**MEvent** ](mevents)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

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-M-AguhiUS1kYzc-E-hs%2F-M-AuDg7mHTnkkhouAi7%2Fimage.png?alt=media\&token=723eca33-dda5-4018-9b49-7911f9f0cba7)

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

## Properties

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-M0TBGWQPTbp3eyKE-sr%2F-M0TdCdLxLdhZ-se2ETe%2Fimage.png?alt=media\&token=ebc6ca82-6028-47c6-8508-2562eb5e171e)

When a **MEvent** is selected on the list it will show the Description of the [**MEvent**](mevents) 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.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-M0TfB6kFhyJkLtQTzaU%2F-M0TfnksxldPx53wfSm2%2Fimage.png?alt=media\&token=6a1daa94-2e5f-453c-bf87-59154cab57d7)

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