Documentation

Development

User Acquisition

Monetization

Industry

Vivox Safe Text

Vivox Safe Text

Vivox
​
​
Vivox Safe Text
  • Introduction to Safe Text
  • Get started
    • Requirements
    • User roles
    • Safe Text dashboard
    • Integrate the Moderation SDK
    • Use the Moderation SDK in game
Capture text sessions
  • Review text sessions
  • Collect evidence
  • Context analysis of text sessions
  • Text evidence management
  • Settings
Review incidents
  • Manage incidents
  • Automate moderation responses
  • Filter and censor text messages
Review player behaviour
  • Player list
  • Review player history
  • Player incidents
  • Review community health
Reference
  • Offenses
  • Context analysis glossary
  • Privacy
  1. Introduction to Vivox Safe Text

Integrate the Moderation SDK

Learn how to access and begin using the moderation dashboard.
Read time 2 minutes
Last updated 5 months ago

Warning
The Digital Services Act (DSA) requires Unity to notify our customers’ end users if Unity takes an action that impacts those end users under the DSA. To comply with this requirement, if you use Unity Gaming Services (UGS) products that rely on the Unity Authentication Service, you must integrate the notification API.
For more information on DSA, refer to the Digital Services Act - compliance update.
To make your game compliant, refer to DSA notifications.
Before you get started with Unity Moderation, make sure you meet all the requirements.
If you have Safe Text enabled in your project, you have access to the moderation dashboaard within the Unity Dashboard.
You can follow the steps in the Safe Text documentation to activate the product in your project.
Once Safe Text is in your project, follow these steps:
  1. Ensure Moderation endpoints are on the allowlist.
  2. Add the Moderation SDK.
  3. Initialize Unity services.
Once Moderation is working in your project, assign User roles of Safety Admin and Safety Moderator to other members of your project to begin reviewing reports.

Ensure Moderation endpoints on the allowlist

If you're using Access Control in your project, you might be applying a Deny by Default strategy.
If so, to allow the Moderation SDK to send reports to the Moderation service, you need to give players the ability to send reports.
Add the following policy to your project to grant players the ability to send reports:
{ "Sid": "allow-moderation-report", "Action": ["*"], "Effect": "Allow", "Principal": "Player", "Resource": "urn:ugs:moderation-report:/*"}

Import the Moderation SDK

Once you have linked your project to the Unity Dashboard, you can install the latest version of the Moderation package.
Use the Unity Package Manager to import the Moderation package in the Unity Editor.
Note
The Moderation SDK is available in the following version of Unity in the Package Manager:
  • 2021.3.32f1
  • 2022.3.12f1
  • 2023.1.17f1
  • 2023.2.0b15
  • 2023.3.0a11

Initialize Unity services

The Moderation SDK exposes a singleton instance of a class you can use to report players. To use it, initialize Unity Services and authenticate your players with Unity Authentication Service (UAS).
The following code is an example of how to authenticate a user using UAS:
using Unity.Services.Core;using Unity.Services.Authentication;async void Start(){ await UnityServices.InitializeAsync(); await AuthenticationService.Instance.SignInAnonymouslyAsync(); if (AuthenticationService.Instance.IsSignedIn) { // game code. } else { Debug.Log("Player was not signed in successfully?"); }}

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Ensure Moderation endpoints on the allowlist

    • Import the Moderation SDK

    • Initialize Unity services


Report a problem with this page
​
​