Exemplo n.º 1
0
 void CombineMesh()
 {
     GameObject existingGemCells = GameObject.Find("GemCells");
     if (existingGemCells != null)
     {
         Mesh combinedMesh = MeshTools.CombineGameObjectMeshes(currentGemsObjs);
         AssetDatabase.CreateAsset(combinedMesh, "Assets/" + settings.combineMeshOutPath);
         AssetDatabase.SaveAssets();
         //DestroyImmediate(existingGemCells);
     }
 }