LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ModelImporter.ExtractTextures

public bool ExtractTextures(string folderPath);

Parameters

folderPathThe directory where the textures will be extracted.

Returns

bool Returns true if the textures are extracted successfully, otherwise false.

Description

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

Throws ArgumentException if the folder path is null or empty.