Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Cloud

Get Started

Asset Manager SDKs and services

Open Unity Dashboard

Unity Cloud

​
​
Unity Dashboard
  • Accounts
  • Organizations
  • Projects
  • Products
  • Billing
Developer Data
  • Introduction to the Developer Data Framework
  • Get started
  • View Diagnostics for your project
  • Privacy and consent
    • Privacy overview
    • Privacy overview for Google Analytics data
    • Apple privacy manifest
    • Google Play data safety
    • Manage user consent
    • Data Subject Requests
Unity Asset Manager
  • What's new
  • Asset Manager web
  • Asset Store
  • Manage Assets in the Editor
  • Unity Version Control
  • Developer documentation
Unity Pipeline Automation
  • About
  • Get started
  • Pipelines
  • Automations
  • Monitor jobs
  1. Unity Cloud Documentation
  2. Developer Data framework

Manage user consent

Manage user consent for your app.
Read time 2 minutes
Last updated 13 days ago

As the owner and controller of your Developer Data, you are responsible for providing sufficiently clear, meaningful, and prominent notices to, making all required disclosures to, and obtaining the necessary consent or permission from any individual to whom such Developer Data relates regarding the collection, disclosure, transfer, use, and security of such data. Further, where you collect applicable consent signals, you are responsible for transmitting those signals to Unity.
For services whose consent is managed via the UnityConsent API, consent must be granted for the services to function normally. If consent is denied and the service can’t access Developer Data, Unity restricts behavior of the service accordingly.
Note
Diagnostic data collection doesn't use the UnityConsent API. For more information, refer to Manage diagnostic data collection.
For more information on the Developer Data that Unity collects, and its purposes of processing, please refer to:
  • Apple privacy manifest
  • Google Play data safety

Manage consent via the UnityConsent API

The overall steps to manage user consent are:
  1. Collect your users’ consent choices.
    Obtain valid consent through a consent banner, in-app UI, or Consent Management Platform (CMP).
  2. Set the user’s consent state in Unity.
    1. Set the UnityConsent API to provide default end-user consent values to apply unless specified otherwise.
    2. Declare each user’s current consent state for the appropriate uses.
    3. Update the user’s state any time their preferences change.
The following code block provides an example implementation:
using UnityEngine.UnityConsent;EndUserConsent.SetConsentState(new ConsentState { AnalyticsIntent = ConsentStatus.Granted, AdsIntent = ConsentStatus.Denied});
If no consent is set via the UnityConsent API, Unity interprets that you are managing consent via another mechanism, where available. If no consent is set via the UnityConsent API and no other applicable consent management mechanism is available, Unity will interpret the default values as follows:
  • AnalyticsIntent = ConsentStatus.Unspecified
  • AdsIntent = ConsentStatus.Unspecified

Manage consent for additional products

Some additional products for which you allow access to the Developer Data framework will collect their own sets of data. For these products, you are responsible for the following:
  • Manage consent through any product-specific or service-specific consent APIs.
  • Provide information on any additional data that the product or service collects.
For more information, refer to the corresponding privacy and consent docs for any product you link.

Manage diagnostic data collection

Diagnostic data consists of only software and hardware performance information that's intended to give you insight into the stability and integrity of your project. Consequently, diagnostic data collection is managed at the project level instead of per user, and it doesn't use the UnityConsent API.
For information about how to turn off diagnostic data collection in your project settings, refer to Configure data collection in the Editor.
For information about how to respond to Data Subject Requests from your users to access or delete their diagnostic data, refer to Data Subject Requests.

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
    • Manage consent via the UnityConsent API

    • Manage consent for additional products

    • Manage diagnostic data collection


Report a problem with this page