Version: 2019.3
LanguageEnglish
  • C#

SystemInfo

class in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Access system and hardware information.

Use this class to figure out capabilities of the underlying platform and hardware. For example, you can check which RenderTexture formats are supported (SupportsRenderTextureFormat), how many CPU threads are available (processorCount), and so on.

Static Properties

batteryLevelThe current battery level (Read Only).
batteryStatusReturns the current status of the device's battery (Read Only).
copyTextureSupportSupport for various Graphics.CopyTexture cases (Read Only).
deviceModelThe model of the device (Read Only).
deviceNameThe user defined name of the device (Read Only).
deviceTypeReturns the kind of device the application is running on (Read Only).
deviceUniqueIdentifierA unique device identifier. It is guaranteed to be unique for every device (Read Only).
graphicsDeviceIDThe identifier code of the graphics device (Read Only).
graphicsDeviceNameThe name of the graphics device (Read Only).
graphicsDeviceTypeThe graphics API type used by the graphics device (Read Only).
graphicsDeviceVendorThe vendor of the graphics device (Read Only).
graphicsDeviceVendorIDThe identifier code of the graphics device vendor (Read Only).
graphicsDeviceVersionThe graphics API type and driver version used by the graphics device (Read Only).
graphicsMemorySizeAmount of video memory present (Read Only).
graphicsMultiThreadedIs graphics device using multi-threaded rendering (Read Only)?
graphicsShaderLevelGraphics device shader capability level (Read Only).
graphicsUVStartsAtTopReturns true if the texture UV coordinate convention for this platform has Y starting at the top of the image.
hasDynamicUniformArrayIndexingInFragmentShadersReturns true when the GPU has native support for indexing uniform arrays in fragment shaders without restrictions.
hasHiddenSurfaceRemovalOnGPUTrue if the GPU supports hidden surface removal.
hasMipMaxLevelReturns true if the GPU supports partial mipmap chains (Read Only).
maxComputeBufferInputsComputeDetermines how many compute buffers Unity supports simultaneously in a compute shader for reading. (Read Only)
maxComputeBufferInputsDomainDetermines how many compute buffers Unity supports simultaneously in a domain shader for reading. (Read Only)
maxComputeBufferInputsFragmentDetermines how many compute buffers Unity supports simultaneously in a fragment shader for reading. (Read Only)
maxComputeBufferInputsGeometryDetermines how many compute buffers Unity supports simultaneously in a geometry shader for reading. (Read Only)
maxComputeBufferInputsHullDetermines how many compute buffers Unity supports simultaneously in a hull shader for reading. (Read Only)
maxComputeBufferInputsVertexDetermines how many compute buffers Unity supports simultaneously in a vertex shader for reading. (Read Only)
maxComputeWorkGroupSizeThe largest total number of invocations in a single local work group that can be dispatched to a compute shader (Read Only).
maxComputeWorkGroupSizeXThe maximum number of work groups that a compute shader can use in X dimension (Read Only).
maxComputeWorkGroupSizeYThe maximum number of work groups that a compute shader can use in Y dimension (Read Only).
maxComputeWorkGroupSizeZThe maximum number of work groups that a compute shader can use in Z dimension (Read Only).
maxCubemapSizeMaximum Cubemap texture size (Read Only).
maxTextureSizeMaximum texture size (Read Only).
minConstantBufferOffsetAlignmentMinimum buffer offset (in bytes) when binding a constant buffer using Shader.SetConstantBuffer or Material.SetConstantBuffer.
npotSupportWhat NPOT (non-power of two size) texture support does the GPU provide? (Read Only)
operatingSystemOperating system name with version (Read Only).
operatingSystemFamilyReturns the operating system family the game is running on (Read Only).
processorCountNumber of processors present (Read Only).
processorFrequencyProcessor frequency in MHz (Read Only).
processorTypeProcessor name (Read Only).
renderingThreadingModeApplication's actual rendering threading mode (Read Only).
supportedRandomWriteTargetCountThe maximum number of random write targets (UAV) that Unity supports simultaneously. (Read Only)
supportedRenderTargetCountHow many simultaneous render targets (MRTs) are supported? (Read Only)
supports2DArrayTexturesAre 2D Array textures supported? (Read Only)
supports32bitsIndexBufferAre 32-bit index buffers supported? (Read Only)
supports3DRenderTexturesAre 3D (volume) RenderTextures supported? (Read Only)
supports3DTexturesAre 3D (volume) textures supported? (Read Only)
supportsAccelerometerIs an accelerometer available on the device?
supportsAsyncComputeReturns true when the platform supports asynchronous compute queues and false if otherwise.
supportsAsyncGPUReadbackReturns true if asynchronous readback of GPU data is available for this device and false otherwise.
supportsAudioIs there an Audio device available for playback? (Read Only)
supportsComputeShadersAre compute shaders supported? (Read Only)
supportsCubemapArrayTexturesAre Cubemap Array textures supported? (Read Only)
supportsGeometryShadersAre geometry shaders supported? (Read Only)
supportsGraphicsFenceReturns true when the platform supports GraphicsFences, and false if otherwise.
supportsGyroscopeIs a gyroscope available on the device?
supportsHardwareQuadTopologyDoes the hardware support quad topology? (Read Only)
supportsInstancingIs GPU draw call instancing supported? (Read Only)
supportsLocationServiceIs the device capable of reporting its location?
supportsMipStreamingIs streaming of texture mip maps supported? (Read Only)
supportsMotionVectorsWhether motion vectors are supported on this platform.
supportsMultisampleAutoResolveReturns true if multisampled textures are resolved automatically
supportsMultisampledTexturesAre multisampled textures supported? (Read Only)
supportsRawShadowDepthSamplingIs sampling raw depth from shadowmaps supported? (Read Only)
supportsRayTracingChecks if ray tracing is supported by the current configuration.
supportsSeparatedRenderTargetsBlendReturns true when the platform supports different blend modes when rendering to multiple render targets, or false otherwise.
supportsSetConstantBufferDoes the current renderer support binding constant buffers directly? (Read Only)
supportsShadowsAre built-in shadows supported? (Read Only)
supportsSparseTexturesAre sparse textures supported? (Read Only)
supportsTessellationShadersAre tessellation shaders supported? (Read Only)
supportsTextureWrapMirrorOnceReturns true if the 'Mirror Once' texture wrap mode is supported. (Read Only)
supportsVibrationIs the device capable of providing the user haptic feedback by vibration?
systemMemorySizeAmount of system memory present (Read Only).
unsupportedIdentifierValue returned by SystemInfo string properties which are not supported on the current platform.
usesLoadStoreActionsTrue if the Graphics API takes RenderBufferLoadAction and RenderBufferStoreAction into account, false if otherwise.
usesReversedZBufferThis property is true if the current platform uses a reversed depth buffer (where values range from 1 at the near plane and 0 at far plane), and false if the depth buffer is normal (0 is near, 1 is far). (Read Only)

Static Methods

GetCompatibleFormatReturns a format supported by the platform for the specified usage.
GetGraphicsFormatReturns the platform-specific GraphicsFormat that is associated with the DefaultFormat.
IsFormatSupportedVerifies that the specified graphics format is supported for the specified usage.
SupportsBlendingOnRenderTextureFormatIs blending supported on render texture format?
SupportsRenderTextureFormatIs render texture format supported?
SupportsTextureFormatIs texture format supported on this device?
SupportsVertexAttributeFormatIndicates whether the given combination of a vertex attribute format and dimension is supported on this device.