11# Unity Native Dialog Plugin
22
3- Displays iOS / Android native dialog from Unity .
3+ A lightweight Unity plugin for displaying native iOS and Android dialog boxes. Perfect for confirmation prompts, alerts, and user notifications with platform-specific styling .
44
5- ## Screen shots
5+ ## 🚀 Quick Start
66
7- Android
7+ ### Basic Usage
88
9- https://github.com/user-attachments/assets/390e011a-7b3e-4128-8fd6-369c98a35054
9+ ``` csharp
10+ using NativeDialog ;
1011
11- iOS
12+ // Show a simple OK/Cancel dialog
13+ DialogManager .ShowSelect (" Are you sure?" , (bool result ) => {
14+ Debug .Log ($" User selected: {result }" );
15+ });
1216
13- https://github.com/user-attachments/assets/4760a655-3fbf-4781-a084-6848f53da53c
17+ // Show a notification dialog with OK button only
18+ DialogManager .ShowSubmit (" Operation completed!" , (bool result ) => {
19+ Debug .Log (" Dialog closed" );
20+ });
21+ ```
1422
15- Editor Fallback
23+ For more examples, see [ NativeDialogSample.cs ] ( Assets/NativeDialogSample.cs )
1624
17- ![ editor-fallback Large ] ( https://github.com/user-attachments/assets/3fdb094d-397e-4af7-92e9-8ca75d323f50 )
25+ ## 📱 Screenshots
1826
27+ ### Android
1928
29+ ![ Android Dialog] ( https://github.com/user-attachments/assets/390e011a-7b3e-4128-8fd6-369c98a35054 )
30+
31+ ### iOS
32+
33+ ![ iOS Dialog] ( https://github.com/user-attachments/assets/4760a655-3fbf-4781-a084-6848f53da53c )
34+
35+ ### Editor Fallback
36+
37+ ![ Editor Fallback] ( https://github.com/user-attachments/assets/3fdb094d-397e-4af7-92e9-8ca75d323f50 )
2038
2139## Install via UPM
2240
@@ -26,3 +44,7 @@ Editor Fallback
26442 . Click ` + ` and select "Add package from git URL".
27453 . Paste the following URL:
2846` https://github.com/asus4/UnityNativeDialogPlugin.git?path=/Packages/com.github.asus4.nativedialog#v1.1.0 `
47+
48+ ## 📄 License
49+
50+ This project is licensed under the MIT License - see the [ LICENSE] ( LICENSE ) file for details.
0 commit comments