# Notification System

The notification system is a flexible and easy-to-use module whose main purpose is to quickly display information to the player.

<details>

<summary>Screenshots</summary>

![](https://524543193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FylL7ZwJBpbHNRKxjM1Py%2Fuploads%2FlCGBLPwswmOC6MqG3j6h%2Fimage.png?alt=media\&token=91c71b23-9083-4218-9539-cf0fdec4f84b)

![](https://524543193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FylL7ZwJBpbHNRKxjM1Py%2Fuploads%2FCdyHFz3WGomAa87y4I3O%2Fimage.png?alt=media\&token=543cd887-38ef-4a2e-b29c-3bc7e5001037)

</details>

## How to use

Just use `Notifier.Builder`:

Initiate Builder by

```csharp
Notifier.Builder.CreateNew()
```

Then, fill notification data

```csharp
.SetText("Find key")
.SetNotificationType(Notifier.NotificationType.LEFT_PANEL)
.SetIcon("failed")
```

<details>

<summary>NotificationType</summary>

`NotificationType` contains three elements: `LEFT_PANEL`, `CENTER_PANEL` and `RIGHT_PANEL`. This is useful when you need different notifications in different part of screen. You can also setup different prefabs for each of this, in `Notifier`'s inspector.

![](https://524543193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FylL7ZwJBpbHNRKxjM1Py%2Fuploads%2F8Elx84xOb0i3bcbfAEXc%2Fimage.png?alt=media\&token=a953d157-2a0c-4651-a105-b279daba87ad)

</details>

<details>

<summary>Icons</summary>

Icon can be pass as Sprite, or as sprite index. If you choice sprite index, it should be added in `Notifier`'s inspector.

![](https://524543193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FylL7ZwJBpbHNRKxjM1Py%2Fuploads%2F0eG6E0rUvqZTtC5drvoS%2Fimage.png?alt=media\&token=d08529e7-91e8-4326-858c-f7f490aa058d)

</details>

And, in finally, show notification&#x20;

```csharp
.ShowNotification();
```

Final result:

```csharp
Notifier.Builder.CreateNew()
    .SetText($"Find {requiredItem.publicName}")
    .SetNotificationType(Notifier.NotificationType.LEFT_PANEL)
    .SetIcon("failed")
    .ShowNotification();
```


---

# Agent Instructions: 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:

```
GET https://eis-2.gitbook.io/easy-interaction-system/additional-systems/notification-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
