您的位置:首页 > 移动开发 > Unity3D

UNITY 5.2 SystemInfo类

2015-10-21 22:01 627 查看
该类主要用于获取系统信息,主要死一些系统信息的只读属性,和 静态的方法查询渲染纹理格式和纹理格式

静态变量:
public static string deviceModel { get; }
说明:设备型号

public static string deviceName { get; }
说明:用户自定义的设备名。Android设备上返回 unknown

public static DeviceType deviceType { get; }
说明:返回设备类型, DeviceType: Unknown 未知设备,Handheld 手持设备,Console 游戏机, Desktop 电脑

public static string deviceUniqueIdentifier { get; }
说明:返回设备的唯一标识

public static int graphicsDeviceID { get; }
说明:返回某一个类型的图形处理器的标识

public static string graphicsDeviceName { get; }
说明:返回图形处理器的名字

public static GraphicsDeviceType graphicsDeviceType { get; }
说明:返回图形处理器使用API版本

 public static string graphicsDeviceVendor { get; }
 说明:返回图形处理器的供应商
 
 public static int graphicsDeviceVendorID { get; }
 说明:返回图形处理器供应商的ID
 
 public static string graphicsDeviceVersion { get; }
 说明:返回最低支持的API版本和驱动版本
 
 public static int graphicsMemorySize { get; }
 说明;获取近似的显存,以M为单位
 
 public static bool graphicsMultiThreaded { get; }
 说明:是否图形处理器支持多线程渲染
 
 public static int graphicsShaderLevel { get; }
 说明;图形处理器着色器性能等级
 
 public static NPOTSupport npotSupport { get; }
 说明:非2的整数次幂是否支持
 
 public static string operatingSystem { get; 
 说明:获取操作系统名和版本
 
 public static int processorCount { get; }
 说明;获取处理器核心数
 
 public static string processorType { get; }
 说明:反馈处理器的详细新奇
 
 public static int supportedRenderTargetCount { get; }
 说明:最多能同时渲染多少目标
 
 public static bool supports3DTextures { get; }
 说明:是否支持3D
 
 public static bool supportsAccelerometer { get; }
 说明;加速度计是否支持
 
 public static bool supportsComputeShaders { get; }
 说明:计算着色器是否支持
 
 public static bool supportsGyroscope { get; }
 说明:是否支持陀螺仪
 
 public static bool supportsImageEffects { get; }
 说明:是否支持图像特效
 
 public static bool supportsInstancing { get; }
 说明:是否支持 draw call 实例化
 
 public static bool supportsLocationService { get; }
 说明:是否支持定位
 
 public static bool supportsRenderTextures { get; }
 说明:是否支持渲染纹理
 
 public static bool supportsRenderToCubemap { get; }
 说明:是否支持 cubemap 纹理渲染
 
 public static bool supportsShadows { get; }
 说明:是否支持阴影
 
 public static bool supportsSparseTextures { get; }
 说明:是否支持稀疏纹理
 
 public static int supportsStencil { get; }
 说明:是否支持模版缓存
 
 public static bool supportsVibration { get; }
 说明:是否支持震动
 
 public static int systemMemorySize { get; }
 说明:返回系统内存数, M 为单位
 

Static方法:

 public static bool SupportsRenderTextureFormat(RenderTextureFormat format);
 说明:是否支持 format 格式渲染纹理
 
 public static bool SupportsTextureFormat(TextureFormat format);
 说明:是否支持 format 纹理格式, TextureFormat 主要是对每个像素内容的定义区别
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: