為了方便以后直接拿來用,所以這次總結一下,有些還沒有了解其意。
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 initialization 10 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 frame 32 void OnGUI () { 33 GUILayout.Label(systemInfo); 34 } 35 }