using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class MaterialLocationAssetPostprocessor : AssetPostprocessor
{
void OnPreprocessModel()
{
var importSettingsMissing = assetImporter.importSettingsMissing;
if (!importSettingsMissing)
return; // Asset imported already, do not process.
var modelImporter = assetImporter as ModelImporter;
modelImporter.SearchAndRemapMaterials(ModelImporterMaterialName.BasedOnMaterialName, ModelImporterMaterialSearch.Everywhere);
}
}
Hi,
I found a solution for my problem I hope it is applyable to yours as well.
When it is about not seeing textures of fbx files you my try reseting the import by goint to the materials tab clicking on the tree dots and reset.This loaded my embedded textures.