- Displays only single button and embedded urls.
- User can't close this alert, only accept it or close app.
- You need Unity 2019.x or newer
ToSx distributed as standard Unity Package
You can install this package using Unity Package Manager, just add the
following to your Packages/manifest.json
:
{
"dependencies": {
"com.whitesharx.tosx": "https://github.com/whitesharx/tosx.git?path=Tosx/Assets/Tosx#0.5.5"
}
}
Whole source code of example can be found inside Sandbox scene.
var settings = new DisplaySettings(title, message, tosText, ppText, tosUrl, ppUrl, actionTitle);
using var toSx = new TosxAlert(settings);
await toSx.DisplayAsync();
ToSx is available under the MIT license.
Made with 🖤 at WhiteSharx