Native Dialog
Display native dialog in Unity (support Android&iOS)
com.ms.nativedialog 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/nativedialog.git README Markdown
Copy this to your project's README.md
## Installation
Add **Native Dialog** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/nativedialog.git
```
[](https://www.pkglnk.dev/pkg/nativedialog)README
UnityNativeDialog
Display native dialog in unity (support Android&iOS)
Import To Unity
add to Packages/manifest.json:
"com.ms.nativedialog":"https://github.com/wlgys8/UnityNativeDialog.git"
How to Use
using MS.NativeDialog;
....
//display dialog with one button
NativeDialogManager.Display(new DialogDisplayOptions(){
title = title,
message = message,
positiveLabel = positiveLabel,
onPositive = onPositive, //optional
});
//display dialog with two button
NativeDialogManager.Display(new DialogDisplayOptions(){
title = title,
message = message,
positiveLabel = positiveLabel,
negativeLabel = negativeLabel,
onPositive = onPositive,
onNegative = onNegative,
});
//display dialog with three button
NativeDialogManager.Display(new DialogDisplayOptions(){
title = title,
message = message,
positiveLabel = positiveLabel,
negativeLabel = negativeLabel,
neutralLabel = neutralLabel,
onPositive = onPositive,
onNegative = onNegative,
onNeutral = onNeutral,
});
No comments yet. Be the first!