SystemInfo获取设备系统参数
来源:互联网 发布:微赞是什么样的软件 编辑:程序博客网 时间:2024/06/05 14:26
using UnityEngine;using System.Collections;using System.Collections.Generic;publicclassGameControllerScript:MonoBehaviour{//指定输出文本框publicUnityEngine.UI.Text messageText;//存储临时字符串System.Text.StringBuilder info =newSystem.Text.StringBuilder();// Use this for initializationvoidStart(){//将输出文本框置空messageText.text ="";info.AppendLine("设备与系统信息:");//设备的模型GetMessage("设备模型",SystemInfo.deviceModel);//设备的名称GetMessage("设备名称",SystemInfo.deviceName);//设备的类型GetMessage("设备类型(PC电脑,掌上型)",SystemInfo.deviceType.ToString());//系统内存大小GetMessage("系统内存大小MB",SystemInfo.systemMemorySize.ToString());//操作系统GetMessage("操作系统",SystemInfo.operatingSystem);//设备的唯一标识符GetMessage("设备唯一标识符",SystemInfo.deviceUniqueIdentifier);//显卡设备标识IDGetMessage("显卡ID",SystemInfo.graphicsDeviceID.ToString());//显卡名称GetMessage("显卡名称",SystemInfo.graphicsDeviceName);//显卡类型GetMessage("显卡类型",SystemInfo.graphicsDeviceType.ToString());//显卡供应商GetMessage("显卡供应商",SystemInfo.graphicsDeviceVendor);//显卡供应唯一IDGetMessage("显卡供应唯一ID",SystemInfo.graphicsDeviceVendorID.ToString());//显卡版本号GetMessage("显卡版本号",SystemInfo.graphicsDeviceVersion);//显卡内存大小GetMessage("显存大小MB",SystemInfo.graphicsMemorySize.ToString());//显卡是否支持多线程渲染GetMessage("显卡是否支持多线程渲染",SystemInfo.graphicsMultiThreaded.ToString());//支持的渲染目标数量GetMessage("支持的渲染目标数量",SystemInfo.supportedRenderTargetCount.ToString());//输出messageText.text = info.ToString();}// Update is called once per framevoidUpdate(){//退出if(Input.GetKeyUp("escape")){if(Input.GetKeyUp("escape")){Application.Quit();}}}voidGetMessage(paramsstring[] str){if(str.Length==2){info.AppendLine(str[0]+":"+ str[1]);}}}
转自https://www.cnblogs.com/caymanlu/p/6023272.html
阅读全文
0 0
- SystemInfo获取设备系统参数
- SystemInfo获取系统参数
- Windows下的systeminfo命令获取系统信息
- 系统信息SystemInfo MemoryStatus
- Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
- 使用SYSTEMINFO类获取UNITY3D运行设备的各类信息(CPU类型,显卡类型等)
- Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
- SystemInfo
- 获取设备显示参数
- Unity3D的SystemInfo类,获取运行设备硬件信息(CPU、显卡、类型等)可用于手机
- 【转】使用SYSTEMINFO类获取UNITY3D运行设备的各类信息(CPU类型,显卡类型等)
- 获取设备系统信息
- iOS开发 获取设备参数
- S60 系统参数获取
- 获取系统参数
- java 获取系统参数
- iphone 获取设备型号 设备系统
- 获取设备的系统属性
- UE4-UI笔记
- 使用ant打包WAR,超详细教程
- iOS-各种动画特效
- js实现查询 添加 排序功能
- 普通程序员如何入门深度学习?
- SystemInfo获取设备系统参数
- 安卓handler消息机制源码解析
- S5PV210开发 -- 串口驱动开发
- C++运算符重载(6) 重载转换操作符
- HTML5 data-* 自定义属性
- Request操作类
- Wireshark抓包示范:TCP三次握手建立连接和四次握手断开连接
- IPFS 入门笔记
- iOS图片的填充方式UIImageView(contentMode)有什么不同