docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Moderation

    The Moderation class provides the entry point to access the Moderation service. It provides an interface to report a specific player with predefined reasons, and provide contextual information. Ensure you call UnityServices.InitializeAsync() before accessing the Instance property.

    Inheritance
    object
    Moderation
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Moderation
    Assembly: Unity.Services.Moderation.dll
    Syntax
    public static class Moderation

    Properties

    Instance

    Provides access to the IModerationService instance. If the Moderation service is not properly initialized, an InvalidOperationException will be thrown.

    Declaration
    public static IModerationService Instance { get; }
    Property Value
    Type Description
    IModerationService
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)