访问特定于平台的系统和硬件信息。
此类与 SystemInfo 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。将它与设备模拟器结合使用以测试编辑器中特定于平台的行为。在编辑器之外,此类的行为与 SystemInfo 类完全相同。Unity 在构建过程中剥离了所有模拟功能。如果您直接使用 Unity 编辑器(例如,创建自定义编辑器工具)并且不需要使用任何模拟值,请使用原始 SystemInfo 类。
batteryLevel | 这与 SystemInfo.batteryLevel 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。 |
batteryStatus | 这与 SystemInfo.batteryStatus 具有相同的功能,并且还模仿 Unity 编辑器中特定于平台的行为。 |
computeSubGroupSize | This 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 编辑器中特定于平台的行为。 |
foveatedRenderingCaps | This 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 编辑器中特定于平台的行为。 |
maxConstantBufferSize | This 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、顶点/索引缓冲区等),以字节为单位(只读)。 |
maxTexture3DSize | This has the same functionality as SystemInfo.maxTexture3DSize and also mimics platform-specific behavior in the Unity Editor. |
maxTextureArraySlices | This 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 编辑器中特定于平台的行为。 |
supportsIndirectArgumentsBuffer | This 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 编辑器中特定于平台的行为。 |
supportsMultisampleResolveStencil | This 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 编辑器中特定于平台的行为。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.