首页 > 代码库 > Unity获取系统详细信息
Unity获取系统详细信息
为了方便以后直接拿来用,所以这次总结一下,有些还没有了解其意。
1 using UnityEngine; 2 using System.Collections; 3 /// <summary> 4 /// 获取当前设备信息 5 /// </summary> 6 public class GetSystemInfo : MonoBehaviour { 7 8 string systemInfo; 9 // Use this for initialization10 void Start () 11 {12 systemInfo = "\tTitle:当前系统基础信息:\n设备模型:" + SystemInfo.deviceModel + "\n设备名称:" + SystemInfo.deviceName + "\n设备类型:" + SystemInfo.deviceType +13 "\n设备唯一标识符:" + SystemInfo.deviceUniqueIdentifier + "\n显卡标识符:"+SystemInfo.graphicsDeviceID +14 "\n显卡设备名称:"+SystemInfo.graphicsDeviceName + "\n显卡厂商:"+SystemInfo.graphicsDeviceVendor +15 "\n显卡厂商ID:"+SystemInfo.graphicsDeviceVendorID + "\n显卡支持版本:"+SystemInfo.graphicsDeviceVersion +16 "\n显存(M):"+SystemInfo.graphicsMemorySize + "\n显卡像素填充率(百万像素/秒),-1未知填充率:"+SystemInfo.graphicsPixelFillrate +17 "\n显卡支持Shader层级:"+SystemInfo.graphicsShaderLevel + "\n支持最大图片尺寸:"+SystemInfo.maxTextureSize +18 "\nnpotSupport:" + SystemInfo.npotSupport + "\n操作系统:"+SystemInfo.operatingSystem +19 "\nCPU处理核数:"+SystemInfo.processorCount + "\nCPU类型:"+SystemInfo.processorType +20 "\nsupportedRenderTargetCount:" + SystemInfo.supportedRenderTargetCount + "\nsupports3DTextures:" + SystemInfo.supports3DTextures +21 "\nsupportsAccelerometer:" + SystemInfo.supportsAccelerometer + "\nsupportsComputeShaders:" + SystemInfo.supportsComputeShaders +22 "\nsupportsGyroscope:" + SystemInfo.supportsGyroscope + "\nsupportsImageEffects:" + SystemInfo.supportsImageEffects +23 "\nsupportsInstancing:" + SystemInfo.supportsInstancing + "\nsupportsLocationService:" + SystemInfo.supportsLocationService +24 "\nsupportsRenderTextures:" + SystemInfo.supportsRenderTextures + "\nsupportsRenderToCubemap:" + SystemInfo.supportsRenderToCubemap +25 "\nsupportsShadows:" + SystemInfo.supportsShadows + "\nsupportsSparseTextures:" + SystemInfo.supportsSparseTextures +26 "\nsupportsStencil:" + SystemInfo.supportsStencil + "\nsupportsVertexPrograms:" + SystemInfo.supportsVertexPrograms +27 "\nsupportsVibration:" + SystemInfo.supportsVibration + "\n内存大小:" + SystemInfo.systemMemorySize;28 29 }30 31 // Update is called once per frame32 void OnGUI () {33 GUILayout.Label(systemInfo);34 }35 }
Unity获取系统详细信息
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。