How to Extract fbx file textures at run time or when file import

when i import fbx file the textures are missing. so i solve this problem by extraxting texture manualy. but i want extract textures when the fbx file load into unity.

thanks…

You can read AssetPostprocessor . There it says:

  • OnPreprocessModel is called at the very beginning and you can override ModelImporter settings that are used for the whole model import process.

And you can use ModelImporter.ExtractTextures for your purpose.

thank you…