# ExtractTextures(string)

> Extracts the embedded textures from a model file (such as FBX or SketchUp).

## Definition

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

```csharp
public bool ExtractTextures(string folderPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The directory where the textures will be extracted.

### Returns

| Type                                                          | Description                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the textures are extracted successfully, otherwise false. |

### Remarks

Throws **ArgumentException** if the folder path is *null* or empty.
