返回介绍

SystemInfo 系统信息

发布于 2019-12-18 15:38:35 字数 8446 浏览 816 评论 0 收藏 0

class in UnityEngine

Description 描述

Access system and hardware information.

访问系统和硬件信息。

Use this class to figure out capabilities of the underlying platform and hardware. For example, you can check which RenderTexture formats are supported (SupportsRenderTextureFormat), how many CPU threads are available (processorCount), and so on.

使用该类去计算出基础平台和硬件的性能。例如,你可以检查哪种渲染贴图格式是支持的(支持渲染贴图格式),CPU有多少可用的线程(进程数量),等等。

Static Variables 静态变量

deviceModelThe model of the device (Read Only).
设备的模型(只读)。
deviceNameThe user defined name of the device (Read Only).
用户定义的设备名称(只读)。
deviceTypeReturns the kind of device the application is running on (Read Only).
返回应用运行时设备的种类(只读)。
deviceUniqueIdentifierA unique device identifier. It is guaranteed to be unique for every device (Read Only).
唯一的设备标识符。这是保证为每一台设备是唯一的(只读)。
graphicsDeviceIDThe identifier code of the graphics device (Read Only).
显卡的标识符编码(只读)。
graphicsDeviceNameThe name of the graphics device (Read Only).
显卡的名字(只读)。
graphicsDeviceTypeThe graphics API type used by the graphics device (Read Only).
用于图形驱动的图形API类型(只读)。
graphicsDeviceVendorThe vendor of the graphics device (Read Only).
显卡的厂商。(只读)
graphicsDeviceVendorIDThe identifier code of the graphics device vendor (Read Only).
显卡厂商的标识符代码。(只读)
graphicsDeviceVersionThe graphics API type and driver version used by the graphics device (Read Only).
该显卡所支持的图形API版本。(只读)
graphicsMemorySizeAmount of video memory present (Read Only).
当前显存的数量。(只读)
graphicsMultiThreadedIs graphics device using multi-threaded rendering (Read Only)?
显卡是否使用多线渲染(只读)?
graphicsShaderLevelGraphics device shader capability level (Read Only).
图形设备着色器性能级别。(只读)
maxTextureSizeMaximum texture size (Read Only).
最大贴图尺寸(只读)。
npotSupportWhat NPOT (non-power of two size) texture support does the GPU provide? (Read Only)
GPU提供支持什么NPOT(无二次幂限制的纹理)贴图?(只读)
operatingSystemOperating system name with version (Read Only).
操作系统的名称(只读)。
processorCountNumber of processors present (Read Only).
当前处理器的数量。(只读)
processorFrequencyProcessor frequency in MHz (Read Only).
处理器频率单位MHz(只读)。
processorTypeProcessor name (Read Only).
处理器的名称(只读)。
supportedRenderTargetCountHow many simultaneous render targets (MRTs) are supported? (Read Only)
支持多少目标(MRTs)同时渲染?(只读)
supports3DTexturesAre 3D (volume) textures supported? (Read Only)
是否支持3D贴图?(只读)
supportsAccelerometerIs an accelerometer available on the device?
在设备上是否可获取加速计?
supportsComputeShadersAre compute shaders supported? (Read Only)
是否支持计算着色器?(只读)
supportsGyroscopeIs a gyroscope available on the device?
是否在该设备上可获取陀螺仪?
supportsImageEffectsAre image effects supported? (Read Only)
是否图像效果?(只读)
supportsInstancingIs GPU draw call instancing supported? (Read Only)
GPU绘画回调是否支持实例化?(只读)
supportsLocationServiceIs the device capable of reporting its location?
是否支持本地服务器?
supportsRawShadowDepthSamplingIs sampling raw depth from shadowmaps supported? (Read Only)
是否支持原始阴影深度采样?(只读)
supportsRenderTexturesAre render textures supported? (Read Only)
是否支持渲染纹理?(只读)
supportsRenderToCubemapAre cubemap render textures supported? (Read Only)
是否支持渲染立方体贴图?(只读)
supportsShadowsAre built-in shadows supported? (Read Only)
是否支持内置阴影?(只读)
supportsSparseTexturesAre sparse textures supported? (Read Only)
是否支持稀疏贴图?(只读)
supportsStencilIs the stencil buffer supported? (Read Only)
是否支持模版?(只读)
supportsVibrationIs the device capable of providing the user haptic feedback by vibration?
是否该设备能够提供用户触觉反馈振动?
systemMemorySizeAmount of system memory present (Read Only).
当前系统内存的数量。(只读)

Static Functions 静态函数

SupportsRenderTextureFormatIs render texture format supported?
是否该渲染纹理格式?
SupportsTextureFormatIs texture format supported on this device?
在该设备上是否支持贴图格式?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文