> ## Documentation Index
> Fetch the complete documentation index at: https://docs-unity.molca.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Shared modals

> Text, selection, progress, keyboard, and notification modals in _MolcaSDK/Code.

**Folder:** `Assets/_MolcaSDK/Code/Scripts/Modal/`

Includes **TextInputModal**, **SelectionModal**, **ProgressModal**, **NumberInputKeyboard**, date picker helpers, **MediaConfirmationModal**, **NotificationModal**, **NotificationHelper**.

Use for UX outside [ModalManager](/core/modal-manager) defaults or for world-space canvas flows.

## When to use

Use shared modals when the built-in [ModalManager](/core/modal-manager) message/loading/confirmation set is not enough and you need product-specific dialog content or flow control.

## Inspector setup

* Ensure [ModalManager](/core/modal-manager) exists on the RuntimeManager prefab.
* Configure modal prefabs and helper references (`NotificationHelper`, input keyboard, etc.) in your scene/prefab.
* If modal text is localized, wire [Localization](/core/localization) components/entries.

## Code

`NotificationHelper` is a common entry point for runtime notifications:

```csharp theme={null}
using MolcaSDK;
using UnityEngine;

public class UploadNotifier : MonoBehaviour
{
    [SerializeField] private NotificationHelper notifications;

    public void NotifySuccess()
    {
        notifications.CreateNotification("Upload completed", autoCloseDelay: 2f, autoClose: true);
    }
}
```

## Troubleshooting

* **Modal does not appear:** confirm `ModalManager.Instance` is available after runtime initialization.
* **Only one notification visible:** `NotificationHelper` closes the previous active modal before opening a new one.
* **Input modal closes instantly:** check auto-close settings and per-modal callback wiring.

## Related

* [ModalManager](/core/modal-manager)
* [UI widgets](/shared/ui-widgets)
* [Session loading and events](/vr/session-loading-and-events)

## Unity Editor

<Frame caption="Shared modal prefab / component">
  <img src="https://mintcdn.com/ptmolcateknologinusantara/qXrgFMk4QevJTANv/images/features/shared/shared-modal-prefab.png?fit=max&auto=format&n=qXrgFMk4QevJTANv&q=85&s=79006a72e25ffab5e94a3432bc9afe2c" alt="Shared Modal Prefab" width="622" height="267" data-path="images/features/shared/shared-modal-prefab.png" />
</Frame>
