View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.1
- Last updated
- First released
- Unity version
- 2020.3.27 or later
- Package size
- 341 KB
- Files
- 9
- Favorites
- 4
- Views in the past week
- 6
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
Native Dialogs for Android & iOS with Editor dialog
Native Dialogs for Android™ & iOS™ with Editor dialog for Unity™
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 4
Native Dialogs for Android & iOS with Editor dialog screenshot 1
About this asset
You can fast and easily show native alert dialogs with buttons such as alert, confirmation, question, and 3 buttons dialogs.
We've added support for HTML links and formatted text in the native dialog! You can now tap on links to open them directly. This new feature is available on both platforms.
For Android™ users, it's now possible to close a dialog box by tapping outside of it.
We hope the asset will save you lots of time and energy and you can focus on game/application development.
From the publisher's Asset Store listing.
Technical details
### Features
- easy to use and implement, source code included
- no dependencies
- error safe handling
- using async/await pattern for API methods
- unity editor dialog for unity runtime
- well-tested code
### How to use
https://gist.github.com/protorius42/d9175bdfc62629c33b4927f844e2eb6d
<code>
using (NativeAlertDialog dialog = new NativeAlertDialog())
{
DialogParams dialogParams = new DialogParams("<<Input your TITLE here>>", "<<Input your MESSAGE here>>");
dialog.ShowNativeDialogAsync(dialogParams).ContinueWith(task =>
{
if (task.Result.Item2 != ButtonErrorCode.NoError)
{
//your error handling here
}
else
{
//check your the pressed button here
}
});
}
</code>
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.44f1 | Compatible | Compatible | Compatible | Compatible |
| 2020.3.27f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.