
This asset provides an editor tool and a runtime script for merging child object meshes, including the parent mesh. It offers a practical optimization, particularly useful during development.Mesh IntegratorMesh Integrator is a powerful Unity tool that allows you to combine the meshes of a GameObject and all its child GameObjects into a single optimized mesh. It supports both Editor and Runtime usage, making it highly flexible for a wide range of development workflows.When to UseMesh Integrator is especially useful during development and in complex games where mesh merging improves performance — for example, after a structure is completed in-game. Instead of rendering many separate mesh objects, you can merge them into one to reduce draw calls and GPU overhead.It’s also ideal when a GameObject has multiple child objects using the same material. These will be combined into a single mesh with a single material reference, which boosts performance significantly when using many instances of the object in your scene.In specific cases, such as procedural or voxel-based games, you can even use Mesh Integrator to merge entire chunks into unified meshes for efficient rendering.Runtime SupportYou can perform mesh merging at runtime, allowing dynamic optimization as the game progresses. This is particularly useful for scenarios like:Combining modular objects after placementFinalizing generated structuresMerging decor elements into background geometryCaching SystemMesh Integrator includes a built-in caching system that helps share the same mesh and materials across multiple instances. This reduces memory usage and greatly improves performance by avoiding repeated mesh processing. You can see this in action in the included SampleScene2.Programmatic UseYou can also call the runtime mesh integration functionality directly from your own scripts using static method provided by the tool. This gives you full control over when and how mesh merging happen. For API reference, see: Docs/Mesh Integrator 1.0.0.pdf.Combines meshes from a GameObject and its child GameObjects into a single optimized mesh:Save the combined result as a prefab in the Unity EditorExport the merged mesh as a mesh assetPerform mesh merging at runtimeUtilize mesh caching to accelerate runtime combining and boost performance, especially when using multiple instances of the same objectUse the mesh merge functionality via static functions in your own scripts — see Docs/Mesh Integrator 1.0.0.pdf for detailsTested on Uinty: 2021.3.2, 2022.3.42fPrepare description and documentation of package and research unity documentation.