五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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ó)家法律
德令哈市| 隆回县| 苍南县| 陇南市| 临澧县| 台中市| 普定县| 中牟县| 津市市| 锦屏县| 沽源县| 宜宾县| 嫩江县| 政和县| 富蕴县| 内乡县| 蛟河市| 天水市| 萝北县| 临沭县| 太仆寺旗| 措勤县| 宁强县| 郸城县| 宝丰县| 镇赉县| 哈密市| 馆陶县| 长寿区| 汝阳县| 丰城市| 洛阳市| 光泽县| 阜南县| 平凉市| 临泽县| 铜山县| 贵德县| 泰来县| 易门县| 平乡县|