Skip to content

✅ Native "Terms of service" alerts for Unity

License

Notifications You must be signed in to change notification settings

whitesharx/tosx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToSx

✅ Native alerts of Terms of Service, Privacy Policy for Unity ✅


  • 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

Install ToSx with Package Manger

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"
  }
}

How to Use

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();

License

ToSx is available under the MIT license.

Made with 🖤 at WhiteSharx