文档

Unity Engine

Unity Engine

SupportsTextureFormat(TextureFormat)

Is texture format supported on this device?
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool SupportsTextureFormat(TextureFormat format)

Parameters

The TextureFormat format to look up.

Returns

Type

Description

boolTrue if the format is supported.

Remarks

It is good practice to check that the device supports a texture format before using it.
Additional Resources: TextureFormat enum.