Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

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

Style
Preview
pkglnk installs badge
## 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
```

[![pkglnk](https://www.pkglnk.dev/badge/nativedialog.svg?style=pkglnk)](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,
});

Comments

No comments yet. Be the first!