Access installation IDs
Implement code in your game to access users' installation IDs.
Read time 1 minuteLast updated 2 days ago
Before you can respond to user Data Subject Requests to access or delete their Diagnostics data, you first need the user to provide their installation ID. You can make this information available anywhere you choose in your game, such as on a privacy page or the main menu. To access the user's installation ID in your game, use the following code:
For information about how to respond to Data Subject Requests, refer to Data Subject Request process.using UnityEngine.Identifiers;string installationId = Identifiers.installationId;Debug.Log($"Installation ID: {installationId}");