在unity里封装了一个非常好用的类,可以方便的获取设备硬件的相关信息,它就是SystemInfo类
下面列举一些常用的信息
print(SystemInfo.graphicsDeviceID);//获取显卡的唯一标识符
print(SystemInfo.deviceUniqueIdentifier);//获取设备唯一标识符
print(SystemInfo.deviceType);//获取设备的类型
print(SystemInfo.processorType);//获取处理器的类型
在unity里封装了一个非常好用的类,可以方便的获取设备硬件的相关信息,它就是SystemInfo类
下面列举一些常用的信息
print(SystemInfo.graphicsDeviceID);//获取显卡的唯一标识符
print(SystemInfo.deviceUniqueIdentifier);//获取设备唯一标识符
print(SystemInfo.deviceType);//获取设备的类型
print(SystemInfo.processorType);//获取处理器的类型