| | |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.advertisingIdentifier; |
| | | #else |
| | | return SystemInfo.deviceUniqueIdentifier; |
| | | // SystemInfo.deviceUniqueIdentifier is deprecated in Unity 2022+ |
| | | // Use platform-specific solutions or GUID |
| | | return System.Guid.NewGuid().ToString(); |
| | | #endif |
| | | } |
| | | |
| | |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.systemVersion; |
| | | #else |
| | | return SystemInfo.operatingSystem; |
| | | return Application.platform.ToString(); |
| | | #endif |
| | | } |
| | | |
| | |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.generation.ToString(); |
| | | #else |
| | | return SystemInfo.deviceName; |
| | | return Application.productName; |
| | | #endif |
| | | } |
| | | |
| | |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.generation.ToString(); |
| | | #else |
| | | return SystemInfo.deviceModel; |
| | | return Application.platform.ToString(); |
| | | #endif |
| | | } |
| | | |