ドキュメント

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.