Unity Native Dialog Plugin
July 2, 2025 ยท View on GitHub
A lightweight Unity plugin for displaying native iOS and Android dialog boxes. Perfect for confirmation prompts, alerts, and user notifications with platform-specific styling.
๐ Quick Start
Basic Usage
using NativeDialog;
// Show a simple OK/Cancel dialog
DialogManager.ShowSelect("Are you sure?", (bool result) => {
Debug.Log($"User selected: {result}");
});
// Show a notification dialog with OK button only
DialogManager.ShowSubmit("Operation completed!", (bool result) => {
Debug.Log("Dialog closed");
});
For more examples, see NativeDialogSample.cs
๐ฑ Screenshots
Android
https://github.com/user-attachments/assets/390e011a-7b3e-4128-8fd6-369c98a35054
iOS
https://github.com/user-attachments/assets/4760a655-3fbf-4781-a084-6848f53da53c
Editor Fallback
Install via UPM
- Open the Package Manager Window.
- Click
+and select "Add package from git URL". - Paste the following URL:
https://github.com/asus4/UnityNativeDialogPlugin.git?path=/Packages/com.github.asus4.nativedialog#v1.2.0
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.