Version: 2020.1
言語: 日本語
public static string deviceUniqueIdentifier ;

説明

一意のデバイス識別子。すべてのデバイスで一意であることが保証されています(読み取り専用)

iOS: iOS 7 より前のデバイスでは MAC アドレスのハッシュを返します。iOS 7 デバイスでは UIDevice identifierForVendor またはそれがなんらかの場合で失敗した場合は ASIdentifierManager advertisingIdentifier を返します。

Android: SystemInfo.deviceUniqueIdentifier always returns the md5 of ANDROID_ID. (See https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID). Note that since Android 8.0 (API level 26) ANDROID_ID depends on the app signing key. That means "unsigned" builds (which are by default signed with a debug keystore) will have a different value than signed builds (which are signed with a key provided in the player settings). Also when allowing Google Play to sign your app, this value will be different when testing locally built app which is signed with the upload key and app downloaded from the Google Play which will be signed with the "final" key.

Windows ストアアプリ: ユニークなデバイス識別子を返すために AdvertisingManager::AdvertisingId を使用し、'PC Settings -> Privacy -> Let apps use my advertising ID (これをオフにするとあなたのIDがリセットされます)' のオプションが無効の場合、 Unity は HardwareIdentification::GetPackageSpecificToken().Id にフォールバックします。

Windows Standalone: returns a hash from the concatenation of strings taken from Computer System Hardware Classes (https://msdn.microsoft.com/en-us/library/windows/desktop/aa389273(v=vs.85).aspx):
Win32_BaseBoard::SerialNumber
Win32_BIOS::SerialNumber
Win32_Processor::UniqueId
Win32_DiskDrive::SerialNumber
Win32_OperatingSystem::SerialNumber

Will return SystemInfo.unsupportedIdentifier on platforms which don't support this property.