# IsPlatformTextureFormatValid(TextureImporterType, BuildTarget, TextureImporterFormat)

> Validates TextureImporterFormat based on a specified import type ( TextureImporterType ) and a specified build target ( BuildTarget.).

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static bool IsPlatformTextureFormatValid(TextureImporterType textureType, BuildTarget target, TextureImporterFormat currentFormat)
```

### Parameters

**** (\[TextureImporterType]\(/engine/6000.5/script-reference/unityeditor/textureimportertype)): The TextureImporterType that the importer uses.**** (\[BuildTarget]\(/engine/6000.5/script-reference/unityeditor/buildtarget)): The platform that the setting targets, referred to as the BuilTarget.**** (\[TextureImporterFormat]\(/engine/6000.5/script-reference/unityeditor/textureimporterformat)): The TextureImporterFormat to validate.

### Returns

| Type                                                          | Description                                                                                                                                                     |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if [TextureImporterFormat](/engine/6000.5/script-reference/unityeditor/textureimporterformat.md) is valid and can be set. Returns false otherwise. |

### Remarks

[TextureImporterFormat](/engine/6000.5/script-reference/unityeditor/textureimporterformat.md) is not available for all platforms based on the [TextureImporterType](/engine/6000.5/script-reference/unityeditor/textureimportertype.md) of a given Texture. Use this method to check that the format set with [TextureImporter.SetPlatformTextureSettings](/engine/6000.5/script-reference/unityeditor/textureimporter/setplatformtexturesettings.md) is a valid format.
