A lightweight Unity plugin for displaying native iOS and Android dialog boxes. Perfect for confirmation prompts, alerts, and user notifications with platform-specific styling.
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
anroid_640p.mp4
ios_640p.mp4
- 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
This project is licensed under the MIT License - see the LICENSE file for details.