User consent

Manage user consent for your app.
Read time 1 minuteLast updated 2 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. For more information on the Developer Data that Unity collects, and its purposes of processing, please refer to:

Manage consent

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:
UnityConsent.SetConsentState(new ConsentState {
    analytics_intent = ConsentStatus.Granted,
    ads_intent = 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:
  • analytics_intent = ConsentStatus.Granted
  • ads_intent = ConsentStatus.Denied

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.