public override void DrawAssetConfigGUI(AssetItemConfigBase assetItemConfigBase) { MeshImprotConfig config = (MeshImprotConfig)assetItemConfigBase; config.isReadable = EditorGUILayout.Toggle("readWriteEnabled", config.isReadable); config.optimizeMesh = EditorGUILayout.Toggle("optimiseMesh", config.optimizeMesh); config.importBlendShapes = EditorGUILayout.Toggle("importBlendShapes", config.importBlendShapes); config.importNormals = (ModelImporterNormals)EditorGUILayout.EnumPopup("importNormals", config.importNormals); config.importTangents = (ModelImporterTangents)EditorGUILayout.EnumPopup("importTangents", config.importTangents); }
private MeshImprotConfig GetPetConfig() { var config = new MeshImprotConfig(); config.isReadable = false; config.optimizeMesh = true; config.importBlendShapes = false; config.importNormals = ModelImporterNormals.Import; config.importTangents = ModelImporterTangents.None; config.importMaterials = false; return(config); }