Пример #1
0
        void OnPreprocessModel()
        {
            ModelImportItem item = EditorConfig.GetModelImportItem(assetPath);

            if (item != null)
            {
                ModelImporter modelImporter = assetImporter as ModelImporter;
                modelImporter.importMaterials   = item.importMaterials;
                modelImporter.meshCompression   = item.meshCompression;
                modelImporter.optimizeMesh      = item.optimizeMesh;
                modelImporter.isReadable        = item.isReadable;
                modelImporter.importBlendShapes = item.importBlendShapes;
                modelImporter.importTangents    = item.importTangents;
                modelImporter.importNormals     = item.importNormals;
            }
        }