bool CheckNormalsOption(CustomModelData d) { bool bCheck = d.normals != (ModelImporterNormals)baseNormalsOption; // 같은대 조건이 Calculate이면 if (!bCheck && baseNormalsOption == NORMALS.Calculate) { if (d.smoothingAngle < baseSmoothingAngle) { bCheck = true; } } return(bCheck); }
void GetModelDataFromFolders() { modelGUID.Clear(); savedModelData.Clear(); modelGUID.AddRange(AssetDatabase.FindAssets("t:Model", new string[] { selectedFolder })); foreach (string GUID in modelGUID) { CustomModelData data = new CustomModelData(); if (data.InitFromGUID(GUID)) { savedModelData.Add(data); } } }
//Indexx Format(16) bool CheckIndexFormat(CustomModelData d) { return(d.IndexFormat != baseIndexFormat); }
bool CheckVertexColor(CustomModelData d) { return(d.vertextColorSet != BOOLTobool(baseVertexColorSet)); }
bool CheckUVCount(CustomModelData d) { return(d.useUVCount >= baseUVCount); }
bool CheckMaterialSearch(CustomModelData d) { return(d.materialSearch != (ModelImporterMaterialSearch)baseMaterialSearch); }
bool CheckMaterialNaming(CustomModelData d) { return(d.materialName != (ModelImporterMaterialName)baseMaterialName); }
bool CheckMeshCompression(CustomModelData d) { return(d.meshCompression != baseMeshCompression); }
bool CheckImportMaterials(CustomModelData d) { return(d.importMaterials != BOOLTobool(baseImportMaterials)); }
bool CheckGenerateLightmapUVs(CustomModelData d) { return(d.generateLightmapUVs != BOOLTobool(baseGenerateLightmapUVs)); }
//bool CheckKeepQuads(CustomModelData d) //{ // return d.keepQuads != BOOLTobool(baseKeepQuads); //} bool CheckSwapUVs(CustomModelData d) { return(d.swapUV != BOOLTobool(baseSwapUVs)); }
bool CheckGenerateColliders(CustomModelData d) { return(d.generateColliders != BOOLTobool(baseGenerateColliders)); }
bool CheckImportBlendShapes(CustomModelData d) { return(d.importBlendShapes != BOOLTobool(baseImportBlendShapes)); }
bool CheckOptimizeMesh(CustomModelData d) { return(d.optimizeMesh != BOOLTobool(baseOptimizeMesh)); }
bool CheckReadWriteEnabled(CustomModelData d) { return(d.readWriteEnabled != BOOLTobool(baseReadWriteEnabled)); }
bool CheckImportAnimation(CustomModelData d) { return(d.ImportAnimation != BOOLTobool(baseImportAnimation)); }
string GetStringWrongFilterType(CustomModelData t) { string strWrongType = " "; if (t.nWrongCheckType != 0) { if (GetCheckType(t.nWrongCheckType, CheckType.CheckScaleFactor)) { strWrongType += "1 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckMeshCompression)) { strWrongType += "2 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckReadWriteEnabled)) { strWrongType += "3 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckOptimizeMesh)) { strWrongType += "4 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckImportBlendShapes)) { strWrongType += "5 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckGenerateColliders)) { strWrongType += "6 "; } //if (GetCheckType(CheckType.CheckKeepQuads)) //{ // AddModelData(CheckType.CheckScaleFactor, savedModelData.Where(t => CheckKeepQuads(t))); //} if (GetCheckType(t.nWrongCheckType, CheckType.CheckSwapUVs)) { strWrongType += "7 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckGenerateLightmapUVs)) { strWrongType += "8 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckImportMaterials)) { strWrongType += "9 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckTangents)) { strWrongType += "10 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckMaterialNaming)) { strWrongType += "11 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckMaterialSearch)) { strWrongType += "12 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckUVCount)) { strWrongType += "13 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckVertexColor)) { strWrongType += "14 "; } if (GetCheckType(t.nWrongCheckType, CheckType.CheckNormalsOption)) { strWrongType += "15 "; } //Index Format if (GetCheckType(t.nWrongCheckType, CheckType.CheckIndexFormat)) { strWrongType += "16 "; } //Import Animation if (GetCheckType(t.nWrongCheckType, CheckType.CheckImportAnimation)) { strWrongType += "17 "; } } return(strWrongType); }
bool CheckTangents(CustomModelData d) { return(d.tangents != (ModelImporterTangents)baseTangents); }