UNITY 5.2 SystemInfo类
来源:互联网 发布:tiger水杯 知乎 编辑:程序博客网 时间:2024/06/06 12:28
该类主要用于获取系统信息,主要死一些系统信息的只读属性,和 静态的方法查询渲染纹理格式和纹理格式
静态变量:
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 为单位
说明:是否支持 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 主要是对每个像素内容的定义区别
1 0
- UNITY 5.2 SystemInfo类
- SystemInfo类-Unity(转载)
- SystemInfo
- SystemInfo.deviceUniqueIdentifier
- UnityEngine.SystemInfo
- Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
- 使用SYSTEMINFO类获取UNITY3D运行设备的各类信息(CPU类型,显卡类型等)
- Unity3D的SystemInfo类,用于获取运行设备硬件信息(CPU、显卡、类型等)
- 提权前的systeminfo命令
- 系统信息SystemInfo MemoryStatus
- day19/SystemInfo.java
- SystemInfo获取系统参数
- Unity3D的SystemInfo类,获取运行设备硬件信息(CPU、显卡、类型等)可用于手机
- 【转】使用SYSTEMINFO类获取UNITY3D运行设备的各类信息(CPU类型,显卡类型等)
- cpuid & systemInfo & osVersion
- SystemInfo获取设备系统参数
- UNITY 5.2 GameObject类
- UNITY 5.2 Transform类
- 黑马程序员-java的初步认识-HelloWorld的编写
- android学习之使用HTTP协议访问网络
- web技术概论第三周作业
- 01 JDK环境变量配置
- 解读NoSQL技术代表之作Dynamo
- UNITY 5.2 SystemInfo类
- Acitivity 跳转是否Destroy()问题
- lintcode-排序列表转换为二分查找树-106
- iOS定位
- <base>标签在html5中使用时……
- 黑马程序员——字符串
- VS9(vs2008) 下 Debug 显示 UTF8 字符串
- 关于spring mvc+mybatis+junit单元测试
- 最短路径—每一对点的最短距离——弗洛伊德