访问系统和硬件信息。
使用该类可以确定底层平台和硬件的功能。例如,您可以检查支持的 RenderTexture 格式 (SupportsRenderTextureFormat)、可用的 CPU 线程数 (processorCount) 等。
batteryLevel | 当前的电池电量(只读)。 |
batteryStatus | 返回设备电池的当前状态(只读)。 |
copyTextureSupport | 对各种 Graphics.CopyTexture 情况的支持(只读)。 |
deviceModel | 设备的型号(只读)。 |
deviceName | 用户定义的设备名称(只读)。 |
deviceType | 返回运行该应用程序的设备的类型(只读)。 |
deviceUniqueIdentifier | 唯一设备标识符。保证对于每个设备都是唯一的(只读)。 |
graphicsDeviceID | 图形设备的标识符代码(只读)。 |
graphicsDeviceName | 图形设备的名称(只读)。 |
graphicsDeviceType | 图形设备使用的图形 API 类型(只读)。 |
graphicsDeviceVendor | 图形设备的供应商(只读)。 |
graphicsDeviceVendorID | 图形设备供应商的标识符代码(只读)。 |
graphicsDeviceVersion | 图形设备使用的图形 API 类型和驱动程序版本(只读)。 |
graphicsMemorySize | 具有的显存容量(只读)。 |
graphicsMultiThreaded | 图形设备是否使用多线程渲染?(只读) |
graphicsShaderLevel | 图形设备着色器功能级别(只读)。 |
graphicsUVStartsAtTop | 如果该平台的纹理 UV 坐标约定的 Y 坐标从图像顶部开始,则返回 true。 |
hasHiddenSurfaceRemovalOnGPU | 如果 GPU 支持删除隐藏的表面,则为 true。 |
maxCubemapSize | 最大立方体贴图纹理大小(只读)。 |
maxTextureSize | 最大纹理大小(只读)。 |
npotSupport | GPU 提供何种 NPOT(大小并非 2 的幂)纹理支持?(只读) |
operatingSystem | 包含版本的操作系统名称(只读)。 |
operatingSystemFamily | 返回运行该游戏的操作系统系列(只读)。 |
processorCount | 具有的处理器数量(只读)。 |
processorFrequency | 处理器频率,单位为 MHz(只读)。 |
processorType | 处理器名称(只读)。 |
supportedRenderTargetCount | 支持多少个同时渲染目标 (MRT)?(只读) |
supports2DArrayTextures | 是否支持 2D 数组纹理?(只读) |
supports32bitsIndexBuffer | 是否支持 32 位索引缓冲区?(只读) |
supports3DRenderTextures | 是否支持 3D(体积)RenderTextures?(只读) |
supports3DTextures | 是否支持 3D(体积)纹理?(只读) |
supportsAccelerometer | 设备上是否有加速度计? |
supportsAsyncCompute | 当平台支持异步计算队列时,返回 true,否则返回 false。 |
supportsAsyncGPUReadback | 如果 GPU 数据的异步回读可用于该设备,则返回 true,否则返回 false。 |
supportsAudio | 是否有可用于播放的音频设备?(只读) |
supportsComputeShaders | 是否支持计算着色器?(只读) |
supportsCubemapArrayTextures | 是否支持立方体贴图数组纹理?(只读) |
supportsGPUFence | 此功能已弃用,不应再使用。请使用 SystemInfo.supportsGraphicsFence。 |
supportsGyroscope | 设备上是否有陀螺仪? |
supportsHardwareQuadTopology | 硬件是否支持四边形拓扑?(只读) |
supportsImageEffects | 是否支持图像效果?(只读) |
supportsInstancing | 是否支持 GPU 绘制调用实例化?(只读) |
supportsLocationService | 设备是否能够报告其位置? |
supportsMipStreaming | 是否支持纹理 Mipmap 串流?(只读) |
supportsMotionVectors | 该平台是否支持运动矢量。 |
supportsMultisampleAutoResolve | 如果自动解析了多重采样纹理,则返回 true |
supportsMultisampledTextures | 是否支持多重采样纹理?(只读) |
supportsRawShadowDepthSampling | 是否支持从阴影贴图进行原始深度采样?(只读) |
supportsRenderToCubemap | 是否支持立方体贴图渲染纹理?(只读) |
supportsSeparatedRenderTargetsBlend | 如果在渲染到多个渲染目标时,平台支持不同的混合模式,则返回 true,否则返回 false。 |
supportsShadows | 是否支持内置阴影?(只读) |
supportsSparseTextures | 是否支持稀疏纹理?(只读) |
supportsTextureWrapMirrorOnce | 如果支持“Mirror Once”纹理包裹模式,则返回 true。(只读) |
supportsVibration | 设备是否能够通过振动为用户提供触觉反馈? |
systemMemorySize | 具有的系统内存容量(只读)。 |
unsupportedIdentifier | SystemInfo 字符串属性返回的当前平台不支持的值。 |
usesReversedZBuffer | 如果当前平台使用反转深度缓冲区(在近平面处,值范围从 1 开始;在远平面处,值范围从 0 开始),则该属性为 true;如果是正常的深度缓冲区(0 为近,1 为远),则该属性为 false。(只读) |
IsFormatSupported | 验证指定的用途是否支持指定的图形格式。 |
SupportsBlendingOnRenderTextureFormat | 渲染纹理格式是否支持混合? |
SupportsRenderTextureFormat | 是否支持渲染纹理格式? |
SupportsTextureFormat | 设备是否支持该纹理格式? |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.