UKismetSystemLibrary::GetDeviceId
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the platform-specific unique device id, replacing the deprecated GetUniqueDeviceId. Commonly used for analytics or device-based save data.
Caveats & Gotchas
- • The format and stability of the returned id varies wildly by platform — some platforms return a hash that changes on OS reinstall, others return a hardware-tied value; don't assume it's permanent or globally unique.
- • On some platforms this id can be considered personally identifying data, so check platform certification/privacy requirements before sending it to analytics services.
Signature
static FString GetDeviceId() Return Type
FString Example
Tag analytics events with a device id C++
FString DeviceId = UKismetSystemLibrary::GetDeviceId();
Analytics->RecordEvent(TEXT("SessionStart"), { { TEXT("DeviceId"), DeviceId } }); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?