Search Unity

SystemInfo.deviceUniqueIdentifier value changed after Windows update

Discussion in 'Scripting' started by kabumere, May 16, 2018.

  1. kabumere

    kabumere

    Joined:
    Oct 2, 2016
    Posts:
    31
    I use SystemInfo.deviceUniqueIdentifier as part of an identifier for instantly creating new user accounts if they're playing from a PC build of my game. I just noticed for my test/dev account though, that after Window's big feature update from 2 days ago (version 1803), the value of SystemInfo.deviceUniqueIdentifier has changed for my PC.

    My question is, has anyone found something more consistent to identify PCs using a Unity build? Player's can attach a login to accounts created by their device (like Facebook or custom email/pass convo) which prevents issues like this, but I'd like to avoid player's accounts getting 'orphaned' if they have no such login attached.
     
    riveranb likes this.
  2. mikaelwallen

    mikaelwallen

    Joined:
    Jun 3, 2016
    Posts:
    56
    Seems we just ran into this as well. From what I understand the Windows OS serial number can change with these big feature updates and Unity uses this when creating the deviceUniqueIdentifier.
    We're using Unity 2018.4.5 and Windows was updated to the 1903 version.
     
  3. pneuro

    pneuro

    Joined:
    Aug 19, 2018
    Posts:
    15
    Anyworkaround yet?