文档

支持

Access installation IDs

Implement code in your game to access users' installation IDs.
阅读时间1 分钟最后更新于 6 天前

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:
using UnityEngine.Identifiers;string installationId = Identifiers.installationId;Debug.Log($"Installation ID: {installationId}");
For information about how to respond to Data Subject Requests, refer to Data Subject Request process.