Documentation

Unity Engine

Unity Engine

SupportsTextureFormat(TextureFormat)

Is texture format supported on this device?
Read time 1 minuteLast updated 2 months ago

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.