docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LevelPlayPrivacySettings

    This class provides privacy APIs for the LevelPlay SDK.

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

    Methods

    SetCCPA(bool)

    Sets the CCPA (California Consumer Privacy Act) flag. This flag indicates whether the user has opted out of the sale of their personal information.

    Declaration
    public static void SetCCPA(bool value)
    Parameters
    Type Name Description
    bool value

    true if the user has opted out of the sale of their personal information, false otherwise.

    SetCOPPA(bool)

    Sets the COPPA (Children's Online Privacy Protection Act) flag. This flag indicates whether the user is a child under the age of 13. This will apply COPPA settings to all supported network adapters.

    Declaration
    public static void SetCOPPA(bool value)
    Parameters
    Type Name Description
    bool value

    true if the user is a child under the age of 13, false otherwise.

    SetGDPRConsents(Dictionary<string, bool>)

    Sets the consent per network, a dictionary of network keys to boolean values that indicates whether the user has granted consent for each network to collect and share data. Consent is used for GDPR compliance.

    Declaration
    public static void SetGDPRConsents(Dictionary<string, bool> networkConsents)
    Parameters
    Type Name Description
    Dictionary<string, bool> networkConsents

    A dictionary where keys are network identifiers and values indicate consent status, true if the user has granted consent, false otherwise.

    In This Article
    Back to top
    Copyright © 2026 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)