public static bool EqualOrGreatIphoneX()
{
var names = new string[]
{
"iPhone10,3",//iPhone X (CDMA)
"iPhone10,6",//iPhone X (GSM)
"iPhone11,2",//iPhone XS
"iPhone11,4",//iPhone XS Max
"iPhone11,6",//iPhone XS Max China
"iPhone11,8",//iPhone XR
"iPhone12,1",//iPhone 11
"iPhone12,3",//iPhone 11 Pro
"iPhone12,5"//iPhone 11 Pro Max
};
var deviceModel = SystemInfo.deviceModel;
for (var i = 0; i < names.Length; i++)
{
if (deviceModel.Contains(names[i]))
{
return true;
}
}
return false;
}
Unity判断设备是否是iphone x或者以上
最新推荐文章于 2024-01-09 15:45:34 发布