{"id":29136336,"url":"https://github.com/stefaaan06/unity-mesh-combiner","last_synced_at":"2025-06-30T11:07:47.439Z","repository":{"id":301759014,"uuid":"1010184619","full_name":"Stefaaan06/Unity-Mesh-Combiner","owner":"Stefaaan06","description":"Unity Mesh Merger tool that allows merging at editor time and when building.","archived":false,"fork":false,"pushed_at":"2025-06-28T16:35:15.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-28T17:29:46.311Z","etag":null,"topics":["mesh","mesh-combiner","mesh-merging","optimization","unity","unity-mesh-combine","unity-mesh-merge","unity-optimization","unity-package","unity3d","unity3d-plugin"],"latest_commit_sha":null,"homepage":"https://stefaaan06.com/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Stefaaan06.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-28T14:31:29.000Z","updated_at":"2025-06-28T16:35:19.000Z","dependencies_parsed_at":"2025-06-28T17:31:21.553Z","dependency_job_id":"05f66bbe-e7f3-4a1e-8955-1689cc9ec450","html_url":"https://github.com/Stefaaan06/Unity-Mesh-Combiner","commit_stats":null,"previous_names":["stefaaan06/unity-mesh-combiner"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Stefaaan06/Unity-Mesh-Combiner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stefaaan06%2FUnity-Mesh-Combiner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stefaaan06%2FUnity-Mesh-Combiner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stefaaan06%2FUnity-Mesh-Combiner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stefaaan06%2FUnity-Mesh-Combiner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stefaaan06","download_url":"https://codeload.github.com/Stefaaan06/Unity-Mesh-Combiner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stefaaan06%2FUnity-Mesh-Combiner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262762465,"owners_count":23360330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mesh","mesh-combiner","mesh-merging","optimization","unity","unity-mesh-combine","unity-mesh-merge","unity-optimization","unity-package","unity3d","unity3d-plugin"],"created_at":"2025-06-30T11:07:44.679Z","updated_at":"2025-06-30T11:07:47.421Z","avatar_url":"https://github.com/Stefaaan06.png","language":"C#","readme":"﻿\nMesh Combiner Tool is a Unity Editor extension that lets you merge meshes (and their children) into a single optimized mesh at editor time. \nIt is useful for reducing draw calls and improving performance.\n\n## Features\n\n* **Combine Multiple Meshes**\n  Merge selected GameObjects (including all children) into one mesh with a single MeshFilter \u0026 MeshRenderer.\n* **Back-Face Stripping**\n  Optionally remove inward-facing triangles to cut away hidden geometry.\n* **Mutual-Face Culling**\n  Cull pairs of nearly opposite faces within a configurable distance threshold to eliminate internal geometry overlaps.\n* **Hierarchy Preservation \u0026 Restoration**\n  Captures each object’s parent, sibling index, and local transform so you can “Uncombine” and restore your exact original hierarchy, transforms, and activation states.\n* **Collider Copying**\n  Retains colliders on the combined mesh by duplicating the original GameObjects colliders.\n* **Tag \u0026 Layer Unification**\n  If all sources share the same tag or layer, the combined mesh inherits it automatically.\n* **Undo Support**\n  Full integration with Unity’s Undo system for all operations.\n\n![showcase.png](img/showcase1.png)\n\n\n## Installation\n\n1. **Via Git URL (Package Manager)**\n\n    * Open Unity’s **Window → Package Manager**\n    * Click the **+** button → **Add package from git URL…**\n    * Enter:\n\n      ```\n      https://github.com/Stefaaan06/Unity-Mesh-Combiner.git\n      ```\n2. You can now open the tool window under **tools** -\u003e **Mesh Combiner**.\n\n## Usage\n\n1. In the Unity Editor, select one or more GameObjects (any of them may have children with MeshFilters).\n2. Go to **Tools → Mesh Combiner** to open the combiner window.\n3. Toggle options as desired:\n4. \n    * **Strip inward-facing triangles**\n    * **Cull mutually facing triangles** (and adjust the **Pair distance threshold**)\n5. Click **Combine Selected**\n6. \n    * Selected meshes are hidden under an `_oldMesh` group\n    * A new `_combined` GameObject is created, with combined geometry, materials, tags, layers, and colliders\n7. To revert, select the combined GameObject in the Hierarchy and click **Uncombine**\n\n    * Restores original meshes, hierarchy, transforms, and deletes the combined object\n\n## Contribution \u0026 Known Issues\n\nAny contribution is welcome as there is still a lot to improve and add:\n- Better readme with more images or gifs\n- Better workflow for editing merged meshes. Right now you have to Uncombine -\u003e edit the objects -\u003e Combine again\n- More and better optimisation methods\n- The duplicated colliders dont mirror tags and layers so they have to be set manually\n- Merged Objects have all the Materials of the old Meshes, even if they are duplicate. This leads to performance and lighting issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefaaan06%2Funity-mesh-combiner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefaaan06%2Funity-mesh-combiner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefaaan06%2Funity-mesh-combiner/lists"}