https://github.com/whitesharx/tosx
✅ Native "Terms of service" alerts for Unity
https://github.com/whitesharx/tosx
android csharp gdpr ios unity
Last synced: 8 months ago
JSON representation
✅ Native "Terms of service" alerts for Unity
- Host: GitHub
- URL: https://github.com/whitesharx/tosx
- Owner: whitesharx
- License: mit
- Created: 2022-08-19T07:09:31.000Z (almost 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-03T10:01:18.000Z (over 3 years ago)
- Last Synced: 2025-04-07T10:21:10.244Z (about 1 year ago)
- Topics: android, csharp, gdpr, ios, unity
- Language: Objective-C
- Homepage:
- Size: 119 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
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](https://docs.unity3d.com/Manual/PackagesList.html)
You can install this package using Unity Package Manager, just add the
following to your `Packages/manifest.json`:
```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](https://github.com/whitesharx/tosx/blob/develop/Tosx/Assets/Tosx/Scenes/SandboxBehaviour.cs) can be found inside Sandbox scene.
```csharp
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](https://en.wikipedia.org/wiki/MIT_License) license.
Made with 🖤 at WhiteSharx