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 主要是对每个像素内容的定义区别
静态变量:
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 主要是对每个像素内容的定义区别
相关文章推荐
- unity 脚本编译顺序
- unity 脚本编译顺序
- Unity编辑器下获取动画的根运动状态并修改
- Unity3d 烘培lightingmap 注意的2点.
- UnityShader实例18:火焰材质
- Unity3D占用内存太大的解决方法
- Unity在android平台的游戏名称国际化
- Unity脚本中各函数成员的生命周期
- 在unity中更改天空盒的几种方式
- unity--鼠标画线、画图实现
- 使用Unity3D创建一个幸运转盘
- Unity制作一个望远镜与查看器摄像机
- unity获取设备经纬度(unity使用GPS)详解
- 【Unity】编辑器属性
- 关于Unity中文件读取
- Unity5.0实时阴影的优化
- 从Unity引擎过度到Unreal4引擎(最终版)
- 关于Unity3d刚体撞击时的作用力的讨论贴
- Unity3D之实现火炬之光遮挡效果
- unity, 不要用TextMesh,用图片代替