Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
2016-12-06 13:54
537 查看
SystemInfo类中的静态变量:
中文显示:
Rendering.CopyTextureSupport copyTextureSupport:(只读)支持多种复制纹理功能的情况。
string
deviceModel:(只读)设备型号(看到好多帖子都写的设备模型很让人误解)。
string
deviceName:(只读)用户定义的设备名称。
DeviceType
deviceType:(只读)返回程序运行所在的设备类型(PC电脑、掌上型等)。
string
deviceUniqueIdentifier:(只读)设备的唯一标识符。每一台设备都有唯一的标识符。
int
graphicsDeviceID:(只读)显卡的唯一标识符ID。
string
graphicsDeviceName:(只读)显卡的名称。
Rending.GraphicsDeviceType graphicsDeviceType:(只读)显卡的类型。
string
graphicsDeviceVendor:(只读)显卡的供应商。
int
graphicsDeviceVendorID:(只读)显卡供应商的唯一识别码ID。
string
graphicsDeviceVersion:(只读)显卡的类型和版本。
int
graphicsMemorySize:(只读)显存大小。
bool
graphicsMultiThreaded:(只读)是否支持多线程渲染?
int
graphicsShaderLevel:(只读)显卡着色器的级别。
int
maxTextureSize:(只读)支持的最大纹理大小。
NPOTSupport npotSupport:(只读)GPU支持的NPOT纹理。
string
operatingSystem:(只读)操作系统的版本名称。
int
processorCount:(只读)当前处理器的数量。
int
processorFrequency:(只读)处理器的频率。
string
processorType:(只读)处理器的名称。
int
supportedRenderTargetCount:(只读)支持渲染多少目标纹理。
bool
supports2DArrayTextures:(只读)是否支持2D数组纹理。
bool
supports3DTextures:(只读)是否支持3D(体积)纹理。
bool
supportsAccelerometer:(只读)是否支持获取加速度计。
bool
supportsAudio:(只读)是否支持获取用于回放的音频设备。
bool
supportsComputeShaders:(只读)是否支持计算着色器。
bool
supportsGyroscope:是否支持获取陀螺仪。
bool
supportsImageEffects:(只读)是否支持图形特效。
bool
supportsInstancing:(只读)是否支持实例化GPU的Draw
Call。
bool
supportsLocationService:是否支持定位功能。
bool
supportsMotionVectors:是否支持运动向量。
bool
supportsRawShadowDepthSampling:(只读)是否支持阴影深度。
bool
supportsRenderTextures:(只读)是否支持渲染纹理。
bool
supportsRenderToCubemap:(只读)是否支持立方体纹理。
bool
supportsShadows:(只读)是否支持内置阴影。
bool
supportsSparseTextures:(只读)是否支持稀疏纹理。
bool
supportsStencil:(只读)是否支持模版缓存。
bool
supportsVibration:是否支持用户触摸震动反馈。
int
systemMemorySize:(只读)系统内存大小。
string
unsupportedIdentifier:不支持运行在当前设备的SystemInfo属性值。
官方文档英文显示:
SystemInfo类中的函数:
bool SupportsRenderTextureFormat(RenderTextureFormat format);
输入一个渲染纹理的格式,判断设备是否支持这种格式
bool SupportsTextureFormat(TextureFormat format);
输入一个纹理的格式,判断设备是否支持这种格式。
中文显示:
Rendering.CopyTextureSupport copyTextureSupport:(只读)支持多种复制纹理功能的情况。
string
deviceModel:(只读)设备型号(看到好多帖子都写的设备模型很让人误解)。
string
deviceName:(只读)用户定义的设备名称。
DeviceType
deviceType:(只读)返回程序运行所在的设备类型(PC电脑、掌上型等)。
string
deviceUniqueIdentifier:(只读)设备的唯一标识符。每一台设备都有唯一的标识符。
int
graphicsDeviceID:(只读)显卡的唯一标识符ID。
string
graphicsDeviceName:(只读)显卡的名称。
Rending.GraphicsDeviceType graphicsDeviceType:(只读)显卡的类型。
string
graphicsDeviceVendor:(只读)显卡的供应商。
int
graphicsDeviceVendorID:(只读)显卡供应商的唯一识别码ID。
string
graphicsDeviceVersion:(只读)显卡的类型和版本。
int
graphicsMemorySize:(只读)显存大小。
bool
graphicsMultiThreaded:(只读)是否支持多线程渲染?
int
graphicsShaderLevel:(只读)显卡着色器的级别。
int
maxTextureSize:(只读)支持的最大纹理大小。
NPOTSupport npotSupport:(只读)GPU支持的NPOT纹理。
string
operatingSystem:(只读)操作系统的版本名称。
int
processorCount:(只读)当前处理器的数量。
int
processorFrequency:(只读)处理器的频率。
string
processorType:(只读)处理器的名称。
int
supportedRenderTargetCount:(只读)支持渲染多少目标纹理。
bool
supports2DArrayTextures:(只读)是否支持2D数组纹理。
bool
supports3DTextures:(只读)是否支持3D(体积)纹理。
bool
supportsAccelerometer:(只读)是否支持获取加速度计。
bool
supportsAudio:(只读)是否支持获取用于回放的音频设备。
bool
supportsComputeShaders:(只读)是否支持计算着色器。
bool
supportsGyroscope:是否支持获取陀螺仪。
bool
supportsImageEffects:(只读)是否支持图形特效。
bool
supportsInstancing:(只读)是否支持实例化GPU的Draw
Call。
bool
supportsLocationService:是否支持定位功能。
bool
supportsMotionVectors:是否支持运动向量。
bool
supportsRawShadowDepthSampling:(只读)是否支持阴影深度。
bool
supportsRenderTextures:(只读)是否支持渲染纹理。
bool
supportsRenderToCubemap:(只读)是否支持立方体纹理。
bool
supportsShadows:(只读)是否支持内置阴影。
bool
supportsSparseTextures:(只读)是否支持稀疏纹理。
bool
supportsStencil:(只读)是否支持模版缓存。
bool
supportsVibration:是否支持用户触摸震动反馈。
int
systemMemorySize:(只读)系统内存大小。
string
unsupportedIdentifier:不支持运行在当前设备的SystemInfo属性值。
官方文档英文显示:
copyTextureSupport | Support for various Graphics.CopyTexture cases (Read Only). |
deviceModel | The model of the device (Read Only). |
deviceName | The user defined name of the device (Read Only). |
deviceType | Returns the kind of device the application is running on (Read Only). |
deviceUniqueIdentifier | A unique device identifier. It is guaranteed to be unique for every device (Read Only). |
graphicsDeviceID | The identifier code of the graphics device (Read Only). |
graphicsDeviceName | The name of the graphics device (Read Only). |
graphicsDeviceType | The graphics API type used by the graphics device (Read Only). |
graphicsDeviceVendor | The vendor of the graphics device (Read Only). |
graphicsDeviceVendorID | The identifier code of the graphics device vendor (Read Only). |
graphicsDeviceVersion | The graphics API type and driver version used by the graphics device (Read Only). |
graphicsMemorySize | Amount of video memory present (Read Only). |
graphicsMultiThreaded | Is graphics device using multi-threaded rendering (Read Only)? |
graphicsShaderLevel | Graphics device shader capability level (Read Only). |
maxTextureSize | Maximum texture size (Read Only). |
npotSupport | What NPOT (non-power of two size) texture support does the GPU provide? (Read Only) |
operatingSystem | Operating system name with version (Read Only). |
processorCount | Number of processors present (Read Only). |
processorFrequency | Processor frequency in MHz (Read Only). |
processorType | Processor name (Read Only). |
supportedRenderTargetCount | How many simultaneous render targets (MRTs) are supported? (Read Only) |
supports2DArrayTextures | Are 2D Array textures supported? (Read Only) |
supports3DTextures | Are 3D (volume) textures supported? (Read Only) |
supportsAccelerometer | Is an accelerometer available on the device? |
supportsAudio | Is there an Audio device available for playback? |
supportsComputeShaders | Are compute shaders supported? (Read Only) |
supportsGyroscope | Is a gyroscope available on the device? |
supportsImageEffects | Are image effects supported? (Read Only) |
supportsInstancing | Is GPU draw call instancing supported? (Read Only) |
supportsLocationService | Is the device capable of reporting its location? |
supportsMotionVectors | Are motion vectors supported. |
supportsRawShadowDepthSampling | Is sampling raw depth from shadowmaps supported? (Read Only) |
supportsRenderTextures | Are render textures supported? (Read Only) |
supportsRenderToCubemap | Are cubemap render textures supported? (Read Only) |
supportsShadows | Are built-in shadows supported? (Read Only) |
supportsSparseTextures | Are sparse textures supported? (Read Only) |
supportsStencil | Is the stencil buffer supported? (Read Only) |
supportsVibration | Is the device capable of providing the user haptic feedback by vibration? |
systemMemorySize | Amount of system memory present (Read Only). |
unsupportedIdentifier | Value returned by SystemInfo string properties which are not supported on the current platform. |
bool SupportsRenderTextureFormat(RenderTextureFormat format);
输入一个渲染纹理的格式,判断设备是否支持这种格式
bool SupportsTextureFormat(TextureFormat format);
输入一个纹理的格式,判断设备是否支持这种格式。
相关文章推荐
- Unity3D的SystemInfo类,获取运行设备硬件信息(CPU、显卡、类型等)可用于手机
- Unity3D的SystemInfo类,获取运行设备硬件信息(CPU、显卡、类型等)可用于手机
- Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
- Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
- Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
- 使用SYSTEMINFO类获取UNITY3D运行设备的各类信息(CPU类型,显卡类型等)
- 【转】使用SYSTEMINFO类获取UNITY3D运行设备的各类信息(CPU类型,显卡类型等)
- unity3d 获取cpu序列号,硬盘ID,网卡MAC地址等硬件可用于加密
- C/C++通过WMI和系统API函数获取获取系统硬件(cpu,内存,显卡,网卡)配置信息
- C/C++通过WMI和系统API函数获取获取系统硬件(cpu,内存,显卡,网卡)配置信息
- VC++获取串口设备信息,CPU ID,硬盘ID,网卡MAC等机器硬件信息,用于加密
- 获取安卓手机设备信息(cpu,手机内存,SD卡,运行内存,mac和开机时间)
- VB.NET 2005 获取硬件信息(包括CPU、主板、BOIS、显卡、内存、网络、存储介质等)
- android 获取设备硬件信息
- 获取主机的硬件信息,CPU的ID,MAC,以及硬盘的ID
- Linux/centos下查看网卡型号,如何查看主板型号,CPU/显卡信息,硬盘型号等硬件信息
- 获取网卡、硬盘、CPU硬件信息 的类
- ASP获取客户端硬件信息(CPU、硬盘、主板、mac地址等)
- 通过WMI获取系统.进程.CPU.磁盘.分区.网卡.主板.内存.显卡.共享.键盘.鼠标等信息
- 获取进程信息和设备信息(包括设备类型,序列号,ios版本等