ScriptReference/SystemInfo #204
Replies: 2 comments
-
|
As of Unity 2017.3.0, this prints all SystemInfo properties string systemInfoMessage = "";
systemInfoMessage += "batteryLevel: " + SystemInfo.batteryLevel + "\n";
systemInfoMessage += "batteryStatus: " + SystemInfo.batteryStatus + "\n";
systemInfoMessage += "copyTextureSupport: " + SystemInfo.copyTextureSupport + "\n";
systemInfoMessage += "deviceModel: " + SystemInfo.deviceModel + "\n";
systemInfoMessage += "deviceName: " + SystemInfo.deviceName + "\n";
systemInfoMessage += "deviceType: " + SystemInfo.deviceType + "\n";
systemInfoMessage += "deviceUniqueIdentifier: " + SystemInfo.deviceUniqueIdentifier + "\n";
systemInfoMessage += "graphicsDeviceID: " + SystemInfo.graphicsDeviceID + "\n";
systemInfoMessage += "graphicsDeviceName: " + SystemInfo.graphicsDeviceName + "\n";
systemInfoMessage += "graphicsDeviceType: " + SystemInfo.graphicsDeviceType + "\n";
systemInfoMessage += "graphicsDeviceVendor: " + SystemInfo.graphicsDeviceVendor + "\n";
systemInfoMessage += "graphicsDeviceVendorID: " + SystemInfo.graphicsDeviceVendorID + "\n";
systemInfoMessage += "graphicsDeviceVersion: " + SystemInfo.graphicsDeviceVersion + "\n";
systemInfoMessage += "graphicsMemorySize: " + SystemInfo.graphicsMemorySize + "\n";
systemInfoMessage += "graphicsMultiThreaded: " + SystemInfo.graphicsMultiThreaded + "\n";
systemInfoMessage += "graphicsShaderLevel: " + SystemInfo.graphicsShaderLevel + "\n";
systemInfoMessage += "graphicsUVStartsAtTop: " + SystemInfo.graphicsUVStartsAtTop + "\n";
systemInfoMessage += "maxCubemapSize: " + SystemInfo.maxCubemapSize + "\n";
systemInfoMessage += "maxTextureSize: " + SystemInfo.maxTextureSize + "\n";
systemInfoMessage += "npotSupport: " + SystemInfo.npotSupport + "\n";
systemInfoMessage += "operatingSystem: " + SystemInfo.operatingSystem + "\n";
systemInfoMessage += "operatingSystemFamily: " + SystemInfo.operatingSystemFamily + "\n";
systemInfoMessage += "processorCount: " + SystemInfo.processorCount + "\n";
systemInfoMessage += "processorFrequency: " + SystemInfo.processorFrequency + "\n";
systemInfoMessage += "processorType: " + SystemInfo.processorType + "\n";
systemInfoMessage += "supportedRenderTargetCount: " + SystemInfo.supportedRenderTargetCount + "\n";
systemInfoMessage += "supports2DArrayTextures: " + SystemInfo.supports2DArrayTextures + "\n";
systemInfoMessage += "supports3DRenderTextures: " + SystemInfo.supports3DRenderTextures + "\n";
systemInfoMessage += "supports3DTextures: " + SystemInfo.supports3DTextures + "\n";
systemInfoMessage += "supportsAccelerometer: " + SystemInfo.supportsAccelerometer + "\n";
systemInfoMessage += "supportsAsyncCompute: " + SystemInfo.supportsAsyncCompute + "\n";
systemInfoMessage += "supportsAudio: " + SystemInfo.supportsAudio + "\n";
systemInfoMessage += "supportsComputeShaders: " + SystemInfo.supportsComputeShaders + "\n";
systemInfoMessage += "supportsCubemapArrayTextures: " + SystemInfo.supportsCubemapArrayTextures + "\n";
systemInfoMessage += "supportsGPUFence: " + SystemInfo.supportsGPUFence + "\n";
systemInfoMessage += "supportsGyroscope: " + SystemInfo.supportsGyroscope + "\n";
systemInfoMessage += "supportsImageEffects: " + SystemInfo.supportsImageEffects + "\n";
systemInfoMessage += "supportsInstancing: " + SystemInfo.supportsInstancing + "\n";
systemInfoMessage += "supportsLocationService: " + SystemInfo.supportsLocationService + "\n";
systemInfoMessage += "supportsMotionVectors: " + SystemInfo.supportsMotionVectors + "\n";
systemInfoMessage += "supportsMultisampledTextures: " + SystemInfo.supportsMultisampledTextures + "\n";
systemInfoMessage += "supportsRawShadowDepthSampling: " + SystemInfo.supportsRawShadowDepthSampling + "\n";
systemInfoMessage += "supportsRenderToCubemap: " + SystemInfo.supportsRenderToCubemap + "\n";
systemInfoMessage += "supportsShadows: " + SystemInfo.supportsShadows + "\n";
systemInfoMessage += "supportsSparseTextures: " + SystemInfo.supportsSparseTextures + "\n";
systemInfoMessage += "supportsTextureWrapMirrorOnce: " + SystemInfo.supportsTextureWrapMirrorOnce + "\n";
systemInfoMessage += "supportsVibration: " + SystemInfo.supportsVibration + "\n";
systemInfoMessage += "systemMemorySize: " + SystemInfo.systemMemorySize + "\n";
systemInfoMessage += "unsupportedIdentifier: " + SystemInfo.unsupportedIdentifier + "\n";
systemInfoMessage += "usesReversedZBuffer: " + SystemInfo.usesReversedZBuffer + "\n";
Debug.Log(systemInfoMessage);I host a crowdsourced SystemInfo table you can contribute to. |
Beta Was this translation helpful? Give feedback.
-
|
If you're looking for an easy way to auto-detect some decent first run settings, be warned that almost all the SystemInfo stuff (number of threads, graphics memory available, etc) is very unreliable. Basically the only two metrics you might be able to use are SystemInfo.graphicsShaderLevel (< 45 means it's a DX10, pre-OpenGL3, or older GPU, like a pretty old Intel integrated card)... supportsSparseTextures also seems like an OK indicator for whether it's a fairly recent higher-end GPU that supports DX11.2+ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/SystemInfo
https://docs.unity3d.com/ScriptReference/SystemInfo.html
Beta Was this translation helpful? Give feedback.
All reactions