无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

unity讀取電腦信息(SystemInfo)

2023-02-27 17:37 作者:星海三垣二十八宿  | 我要投稿

隨便找了一臺(tái)服務(wù)器的''虛擬機(jī)"測(cè)試

效果展示


代碼如下

public TMP_Text A1;

public TMP_Text A27;(中間省略)

void Update()

{

? ? ? ? A1.text = "是否有可用于播放的音頻設(shè)備?" + SystemInfo.supportsAudio;

? ? ? ? A2.text = "設(shè)備上是否有陀螺儀?" + SystemInfo.supportsGyroscope;

? ? ? ? A3.text = "檢查當(dāng)前配置是否支持光線追蹤" + SystemInfo.supportsRayTracing;

? ? ? ? A4.text = "版本的操作系統(tǒng)名稱" + SystemInfo.operatingSystem;

? ? ? ? A5.text = "應(yīng)用程序?qū)嶋H渲染線程模式" + SystemInfo.renderingThreadingMode;

? ? ? ? A6.text = "是否有加速度計(jì)?" + SystemInfo.supportsAccelerometer;

? ? ? ? A7.text = "是否支持內(nèi)置陰影?" + SystemInfo.supportsShadows;

? ? ? ? A8.text = "是否支持稀疏紋理?" + SystemInfo.supportsSparseTextures;

? ? ? ? A9.text = "系統(tǒng)內(nèi)存容量" + SystemInfo.systemMemorySize;

? ? ? ? A10.text = "計(jì)算著色器可以在 Y 維度使用的最大工作組數(shù)" + SystemInfo.maxComputeWorkGroupSizeY;

? ? ? ? A11.text = "計(jì)算著色器可以在 Z 維度使用的最大工作組數(shù)" + SystemInfo.maxComputeWorkGroupSizeZ;

? ? ? ? A12.text = "計(jì)算著色器可以在 X 維度使用的最大工作組數(shù)" + SystemInfo.maxComputeWorkGroupSizeX;

? ? ? ? A13.text = "圖形設(shè)備著色器功能級(jí)別" + SystemInfo.graphicsShaderLevel;

? ? ? ? A14.text = "圖形設(shè)備是否使用多線程渲染?" + SystemInfo.graphicsMultiThreaded;

? ? ? ? A15.text = "具有的顯存容量" + SystemInfo.graphicsMemorySize;

? ? ? ? A16.text = "圖形設(shè)備使用的圖形 API 類型和驅(qū)動(dòng)程序版本" + SystemInfo.graphicsDeviceVersion;

? ? ? ? A17.text = "圖形設(shè)備供應(yīng)商的標(biāo)識(shí)符代碼" + SystemInfo.graphicsDeviceVendorID;

? ? ? ? A18.text = "圖形設(shè)備的供應(yīng)商" + SystemInfo.graphicsDeviceVendor;

? ? ? ? A19.text = "圖形設(shè)備使用的圖形 API 類型" + SystemInfo.graphicsDeviceType;

? ? ? ? A21.text = "用戶定義的設(shè)備名稱" + SystemInfo.deviceName;

? ? ? ? A22.text = "設(shè)備的型號(hào)" + SystemInfo.deviceModel;

? ? ? ? A23.text = "當(dāng)前的電池電量" + SystemInfo.batteryLevel;

? ? ? ? A24.text = "處理器頻率" + SystemInfo.processorFrequency;

? ? ? ? A25.text = "處理器數(shù)量" + SystemInfo.processorCount;

? ? ? ? A26.text = "處理器名稱" + SystemInfo.processorType;

? ? ? ? A27.text = "圖形設(shè)備的標(biāo)識(shí)符代碼" +StemInfo.graphicsDeviceID;

}

StemInfo可以讀取關(guān)于計(jì)算機(jī)及其操作系統(tǒng)的詳細(xì)配置信息

如果認(rèn)為這樣寫麻煩,可以用C#中的換行符\n\r

\n(下一行開頭位置)換行符

\r(回到一行開頭)回車符


個(gè)人學(xué)習(xí)unity和C#的學(xué)習(xí)筆記?

unity讀取電腦信息(SystemInfo)的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
始兴县| 延川县| 施秉县| 会东县| 湘西| 库伦旗| 利辛县| 宁明县| 玉门市| 嘉峪关市| 裕民县| 类乌齐县| 临沧市| 都江堰市| 乐昌市| 抚顺县| 固阳县| 博白县| 天等县| 奉新县| 临安市| 卢龙县| 当雄县| 南充市| 厦门市| 雷波县| 高阳县| 安福县| 佳木斯市| 鸡东县| 抚顺市| 利津县| 龙川县| 巨野县| 保德县| 五指山市| 镇江市| 潼关县| 辽阳市| 桦川县| 汉源县|