unity 获取当前设备的硬件信息

获取当前设备的硬件信息(SystemInfo类)

“`
Debug.Log(“电池电量:”+SystemInfo.batteryLevel);
Debug.Log(“电池状态(充电,满电……):”+SystemInfo.batteryStatus);
Debug.Log(“设备模型:” + SystemInfo.deviceModel);
Debug.Log(“设备名字:”+SystemInfo.deviceName);
Debug.Log(“设备类型:”+SystemInfo.deviceType);
Debug.Log(“处理器类型:” + SystemInfo.processorType);
Debug.Log(“内存大小:” + SystemInfo.systemMemorySize);
Debug.Log(“操作系统:”+SystemInfo.operatingSystem);
Debug.Log(“显卡类型:”+SystemInfo.graphicsDeviceType);
Debug.Log(“最大贴图大小”+SystemInfo.maxTextureSize);

猜你喜欢

转载自blog.csdn.net/star__119/article/details/80067686
今日推荐