예제 #1
0
        bool CheckNormalsOption(CustomModelData d)
        {
            bool bCheck = d.normals != (ModelImporterNormals)baseNormalsOption;

            // 같은대 조건이 Calculate이면
            if (!bCheck && baseNormalsOption == NORMALS.Calculate)
            {
                if (d.smoothingAngle < baseSmoothingAngle)
                {
                    bCheck = true;
                }
            }

            return(bCheck);
        }
예제 #2
0
        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);
                }
            }
        }
예제 #3
0
 //Indexx Format(16)
 bool CheckIndexFormat(CustomModelData d)
 {
     return(d.IndexFormat != baseIndexFormat);
 }
예제 #4
0
 bool CheckVertexColor(CustomModelData d)
 {
     return(d.vertextColorSet != BOOLTobool(baseVertexColorSet));
 }
예제 #5
0
 bool CheckUVCount(CustomModelData d)
 {
     return(d.useUVCount >= baseUVCount);
 }
예제 #6
0
 bool CheckMaterialSearch(CustomModelData d)
 {
     return(d.materialSearch != (ModelImporterMaterialSearch)baseMaterialSearch);
 }
예제 #7
0
 bool CheckMaterialNaming(CustomModelData d)
 {
     return(d.materialName != (ModelImporterMaterialName)baseMaterialName);
 }
예제 #8
0
 bool CheckMeshCompression(CustomModelData d)
 {
     return(d.meshCompression != baseMeshCompression);
 }
예제 #9
0
 bool CheckImportMaterials(CustomModelData d)
 {
     return(d.importMaterials != BOOLTobool(baseImportMaterials));
 }
예제 #10
0
 bool CheckGenerateLightmapUVs(CustomModelData d)
 {
     return(d.generateLightmapUVs != BOOLTobool(baseGenerateLightmapUVs));
 }
예제 #11
0
        //bool CheckKeepQuads(CustomModelData d)
        //{
        //    return d.keepQuads != BOOLTobool(baseKeepQuads);
        //}

        bool CheckSwapUVs(CustomModelData d)
        {
            return(d.swapUV != BOOLTobool(baseSwapUVs));
        }
예제 #12
0
 bool CheckGenerateColliders(CustomModelData d)
 {
     return(d.generateColliders != BOOLTobool(baseGenerateColliders));
 }
예제 #13
0
 bool CheckImportBlendShapes(CustomModelData d)
 {
     return(d.importBlendShapes != BOOLTobool(baseImportBlendShapes));
 }
예제 #14
0
 bool CheckOptimizeMesh(CustomModelData d)
 {
     return(d.optimizeMesh != BOOLTobool(baseOptimizeMesh));
 }
예제 #15
0
 bool CheckReadWriteEnabled(CustomModelData d)
 {
     return(d.readWriteEnabled != BOOLTobool(baseReadWriteEnabled));
 }
예제 #16
0
 bool CheckImportAnimation(CustomModelData d)
 {
     return(d.ImportAnimation != BOOLTobool(baseImportAnimation));
 }
예제 #17
0
        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);
        }
예제 #18
0
 bool CheckTangents(CustomModelData d)
 {
     return(d.tangents != (ModelImporterTangents)baseTangents);
 }