We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5e2b8f commit 973722aCopy full SHA for 973722a
1 file changed
Plugins/CS/Device.cs
@@ -35,6 +35,13 @@ public static class Device
35
[DllImport("__Internal")]
36
static extern string Device_GetCountryCode();
37
38
+ public static Version GetIOSVersion()
39
+ {
40
+ if(Version.TryParse(UnityEngine.iOS.Device.systemVersion, out var iOSVersion))
41
+ return iOSVersion;
42
+ return new Version(0, 0);
43
+ }
44
+
45
/// <summary>
46
/// 是否是 iPhone 刘海屏
47
/// </summary>
0 commit comments