言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

SystemInfo.deviceUniqueIdentifier

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static var deviceUniqueIdentifier: string;
public static string deviceUniqueIdentifier;
public static deviceUniqueIdentifier as string

Description

一意のデバイス識別子。全てのデバイスで一意であることが保証されています (Read Only)

OS: iOS 7より前のデバイスでは MAC アドレスのハッシュを返します。iOS 7 デバイスでは UIDevice identifierForVendor またはそれが何らかの場合で失敗した場合は ASIdentifierManager advertisingIdentifier を返す。 Windows Store Apps: uses AdvertisingManager::AdvertisingId for returning unique device identifier, if option in 'PC Settings -> Privacy -> Let apps use my advertising ID for experiences across apps (turning this off will reset your ID)' is disabled, Unity will fallback to HardwareIdentification::GetPackageSpecificToken().Id.