Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Feedback Please change API from 'IUserProfile.gameId' tobe 'IUserProfile.globalId' instead

Discussion in '2020.1 Beta' started by Thaina, Feb 13, 2020.

  1. Thaina

    Thaina

    Joined:
    Jul 13, 2012
    Posts:
    1,166
    In the past, the `IUserProfile` interface only support one `id` property. And it was used by some 3rd party such as google play service as the gameId itself, and the globalId is another id altogether

    So I think if you would have gameId separated from globalId, it should be globalId that was be added instead. Or maybe deprecate the old `id` and add both globalId and gameId together. So it would have no unintentional bug that the id was changed, or gameId are actually globalId, or the id itself is actually be the gameId. We developer then need to intentionally choose id we really should used in our project

    2020 still alpha so it should not be breaking change now