国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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ó)家法律
恩施市| 新乡市| 织金县| 东港市| 康乐县| 古蔺县| 富锦市| 潼南县| 乐至县| 隆昌县| 卢湾区| 格尔木市| 邛崃市| 长兴县| 循化| 临沧市| 黎川县| 鹿泉市| 田林县| 肇源县| 广河县| 岳阳市| 桓仁| 全椒县| 泸水县| 寿阳县| 永顺县| 寻甸| 德安县| 楚雄市| 安新县| 肥城市| 左贡县| 阿巴嘎旗| 阳原县| 南昌市| 年辖:市辖区| 穆棱市| 南开区| 绥化市| 泉州市|