Version: 2022.2

SystemInfo

class in UnityEngine.Device

切换到手册

描述

访问特定于平台的系统和硬件信息。

此类与 SystemInfo 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。将它与设备模拟器结合使用以测试编辑器中特定于平台的行为。在编辑器之外,此类的行为与 SystemInfo 类完全相同。Unity 在构建过程中剥离了所有模拟功能。如果您直接使用 Unity 编辑器(例如,创建自定义编辑器工具)并且不需要使用任何模拟值,请使用原始 SystemInfo 类。

静态变量

batteryLevel这与 SystemInfo.batteryLevel 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
batteryStatus这与 SystemInfo.batteryStatus 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
computeSubGroupSizeThis has the same functionality as SystemInfo.computeSubGroupSize and also mimics platform-specific behavior in the Unity Editor.
constantBufferOffsetAlignment这与 SystemInfo.constantBufferOffsetAlignment 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
copyTextureSupport这与 SystemInfo.copyTextureSupport 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
deviceModel这与 SystemInfo.deviceModel 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
deviceName这与 SystemInfo.deviceName 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
deviceType这与 SystemInfo.deviceType 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
deviceUniqueIdentifier这与 SystemInfo.deviceUniqueIdentifier 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
foveatedRenderingCapsThis has the same functionality as SystemInfo.foveatedRenderingCaps and also mimics platform-specific behavior in the Unity Editor.
graphicsDeviceID这与 SystemInfo.graphicsDeviceID 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsDeviceName这与 SystemInfo.graphicsDeviceName 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsDeviceType这与 SystemInfo.graphicsDeviceType 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsDeviceVendor这与 SystemInfo.graphicsDeviceVendor 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsDeviceVendorID这与 SystemInfo.graphicsDeviceVendorID 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsDeviceVersion这与 SystemInfo.graphicsDeviceVersion 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsMemorySize这与 SystemInfo.graphicsMemorySize 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsMultiThreaded这与 SystemInfo.graphicsMultiThreaded 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsShaderLevel这与 SystemInfo.graphicsShaderLevel 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
graphicsUVStartsAtTop这与 SystemInfo.graphicsUVStartsAtTop 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
hasDynamicUniformArrayIndexingInFragmentShaders这与 SystemInfo.hasDynamicUniformArrayIndexingInFragmentShaders 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
hasHiddenSurfaceRemovalOnGPU这与 SystemInfo.hasHiddenSurfaceRemovalOnGPU 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
hasMipMaxLevel这与 SystemInfo.hasMipMaxLevel 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
hdrDisplaySupportFlags这与 SystemInfo.hdrDisplaySupportFlags 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeBufferInputsCompute这与 SystemInfo.maxComputeBufferInputsCompute 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeBufferInputsDomain这与 SystemInfo.maxComputeBufferInputsDomain 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeBufferInputsFragment这与 SystemInfo.maxComputeBufferInputsFragment 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeBufferInputsGeometry这与 SystemInfo.maxComputeBufferInputsGeometry 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeBufferInputsHull这与 SystemInfo.maxComputeBufferInputsHull 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeBufferInputsVertex这与 SystemInfo.maxComputeBufferInputsVertex 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeWorkGroupSize这与 SystemInfo.maxComputeWorkGroupSize 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeWorkGroupSizeX这与 SystemInfo.maxComputeWorkGroupSizeX 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeWorkGroupSizeY这与 SystemInfo.maxComputeWorkGroupSizeY 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxComputeWorkGroupSizeZ这与 SystemInfo.maxComputeWorkGroupSizeZ 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxConstantBufferSizeThis property mimics platform-specific behavior caused by SystemInfo.maxConstantBufferSize. Use this property for platform-specific testing in the Unity Editor.
maxCubemapSize这与 SystemInfo.maxCubemapSize 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
maxGraphicsBufferSize图形缓冲区的最大大小(GraphicsBuffer、ComputeBuffer、顶点/索引缓冲区等),以字节为单位(只读)。
maxTexture3DSizeThis has the same functionality as SystemInfo.maxTexture3DSize and also mimics platform-specific behavior in the Unity Editor.
maxTextureArraySlicesThis has the same functionality as SystemInfo.maxTextureArraySlices and also mimics platform-specific behavior in the Unity Editor.
maxTextureSize这与 SystemInfo.maxTextureSize 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
npotSupport这与 SystemInfo.npotSupport 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
operatingSystem这与 SystemInfo.operatingSystem 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
operatingSystemFamily这与 SystemInfo.operatingSystemFamily 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
processorCount这与 SystemInfo.processorCount 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
processorFrequency这与 SystemInfo.processorFrequency 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
processorType这与 SystemInfo.processorType 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
renderingThreadingMode这与 SystemInfo.renderingThreadingMode 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportedRandomWriteTargetCount这与 SystemInfo.supportedRandomWriteTargetCount 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportedRenderTargetCount这与 SystemInfo.supportedRenderTargetCount 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supports2DArrayTextures这与 SystemInfo.supports2DArrayTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supports32bitsIndexBuffer这与 SystemInfo.supports32bitsIndexBuffer 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supports3DRenderTextures这与 SystemInfo.supports3DRenderTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supports3DTextures这与 SystemInfo.supports3DTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsAccelerometer这与 SystemInfo.supportsAccelerometer 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsAsyncCompute这与 SystemInfo.supportsAsyncCompute 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsAsyncGPUReadback这与 SystemInfo.supportsAsyncGPUReadback 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsAudio这与 SystemInfo.supportsAudio 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsCompressed3DTextures这与 SystemInfo.supportsCompressed3DTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsComputeShaders这与 SystemInfo.supportsComputeShaders 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsConservativeRaster这与 SystemInfo.supportsConservativeRaster 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsCubemapArrayTextures这与 SystemInfo.supportsCubemapArrayTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsGeometryShaders这与 SystemInfo.supportsGeometryShaders 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsGpuRecorder这与 SystemInfo.supportsGpuRecorder 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsGraphicsFence这与 SystemInfo.supportsGraphicsFence 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsGyroscope这与 SystemInfo.supportsGyroscope 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsHardwareQuadTopology这与 SystemInfo.supportsHardwareQuadTopology 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsIndirectArgumentsBufferThis property has the same functionality as SystemInfo.supportsIndirectArgumentsBuffer and also mimics platform-specific behavior in the Unity Editor.
supportsInstancing这与 SystemInfo.supportsInstancing 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsLocationService这与 SystemInfo.supportsLocationService 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsMipStreaming这与 SystemInfo.supportsMipStreaming 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsMotionVectors这与 SystemInfo.supportsMotionVectors 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsMultisampleAutoResolve这与 SystemInfo.supportsMultisampleAutoResolve 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsMultisampled2DArrayTextures这与 SystemInfo.supportsMultisampled2DArrayTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsMultisampledTextures这与 SystemInfo.supportsMultisampledTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsMultisampleResolveDepth此属性与 SystemInfo.supportsMultisampleResolveDepth 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsMultisampleResolveStencilThis property has the same functionality as SystemInfo.supportsMultisampleResolveStencil and also mimics platform-specific behavior in the Unity Editor.
supportsMultiview这与 SystemInfo.supportsMultiview 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsRawShadowDepthSampling这与 SystemInfo.supportsRawShadowDepthSampling 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsRayTracing这与 SystemInfo.supportsRayTracing 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsRenderTargetArrayIndexFromVertexShader这与 SystemInfo.supportsRenderTargetArrayIndexFromVertexShader 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsSeparatedRenderTargetsBlend这与 SystemInfo.supportsSeparatedRenderTargetsBlend 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsSetConstantBuffer这与 SystemInfo.supportsSetConstantBuffer 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsShadows这与 SystemInfo.supportsShadows 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsSparseTextures这与 SystemInfo.supportsSparseTextures 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsStoreAndResolveAction此属性与 SystemInfo.supportsStoreAndResolveAction 具有相同的功能,并且还在 Unity 编辑器中显示特定于平台的行为。
supportsTessellationShaders这与 SystemInfo.supportsTessellationShaders 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsTextureWrapMirrorOnce这与 SystemInfo.supportsTextureWrapMirrorOnce 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
supportsVibration这与 SystemInfo.supportsVibration 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
systemMemorySize这与 SystemInfo.systemMemorySize 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
unsupportedIdentifier这与 SystemInfo.unsupportedIdentifier 具有相同的功能。
usesLoadStoreActions这与 SystemInfo.usesLoadStoreActions 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
usesReversedZBuffer这与 SystemInfo.usesReversedZBuffer 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。

静态函数

GetCompatibleFormat这与 SystemInfo.GetCompatibleFormat 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
GetGraphicsFormat这与 SystemInfo.GetGraphicsFormat 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
GetRenderTextureSupportedMSAASampleCount这与 SystemInfo.GetRenderTextureSupportedMSAASampleCount 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
IsFormatSupported这与 SystemInfo.IsFormatSupported 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
SupportsBlendingOnRenderTextureFormat这与 SystemInfo.SupportsBlendingOnRenderTextureFormat 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
SupportsRandomWriteOnRenderTextureFormat这与 SystemInfo.SupportsRandomWriteOnRenderTextureFormat 具有相同的功能。目前,设备模拟器不支持该方法的模拟。
SupportsRenderTextureFormat这与 SystemInfo.SupportsRenderTextureFormat 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
SupportsTextureFormat这与 SystemInfo.SupportsTextureFormat 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。
SupportsVertexAttributeFormat这与 SystemInfo.SupportsVertexAttributeFormat 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。