この関数をサブクラスに追加してモデル (.fbx、.mb ファイル等) のインポート完了の直前に通知を取得します
これによりインポート設定をコードにより制御できます。
// Disable import of materials if the file contains
// the @ sign marking it as an animation.
class DisableMaterialImport extends AssetPostprocessor {
function OnPreprocessModel () {
if (assetPath.Contains("@")) {
var modelImporter : ModelImporter = assetImporter;
modelImporter.importMaterials = false;
}
}
}