Kit Optimizer
Original objects remain in the scene with their renderers hidden, and their colliders and scripts ... Import Substance 3D Painter exports. ... Compare before and after. ... Get suggestions.
by Texelwright
Price History +
Technical details
• Version 1.0.0 · Unity 2022.3 LTS (2022.3.6 or later) through Unity 6.6 · Built-in, URP and HDRP · C# only, tested on the Windows editor
• One dockable window (Tools › Kit Optimizer): Home, Library, Atlases, Merge Groups and Build Check.
• Scene-view editing: click objects to add them to an atlas or merge group, or remove them.
• Packing uses a C# port of xatlas's packer (MIT), and MaxRects and a page-filling pass when it would need a second page. Regions are moved, never scaled on their own; turning them by a diagonal flip is optional.
• Source textures are read from the original files; import settings that change texels, such as Flip Green Channel, are honoured.
• Skinned meshes are atlased with their bones, weights and blend shapes.
• Build Check from the command line: KitOptimizer.Editor.Build.CommandLine.Check and .FixAll, with exit codes.
• Library: shaders and Shader Graphs are stored with the files they include; scripts and packages are recorded as dependencies, not copied.
• No package dependencies. Saved data is versioned.
• Sample: the Collector’s Study (8 CC0 props and 6 room materials from Poly Haven) in Built-in, URP and HDRP versions, with a scene and a README walkthrough.
Reduce draw calls with reversible texture atlasing and mesh combining.
Kit Optimizer brings texture atlasing, mesh combining and a shared prop library into the Unity Editor. Pack prop textures into shared atlases, combine nearby props into fewer renderers, and reuse your assets across projects.
Your original textures, meshes and materials stay untouched. Generate and apply optimised outputs, restore the original props with one click and regenerate whenever you need to make changes.
Texture atlasing
• Preserve source texels. Texels are copied exactly from the original files unless you choose a detail reduction or tint baking, or the page runs out of room. Then Fit to page scales every texture set by one factor, once from the originals, and reports how much detail each keeps; Full detail never scales.
• Keep HDR and 16-bit maps. EXR and HDR sources keep values above 1 in an EXR atlas map, and 16-bit data maps stay 16-bit.
• Re-atlas kit props. Props that share a kit's texture sheet with other assets are repacked using only the parts they use.
• Keep overlapping UVs shared. Stacked, partially overlapping and mirrored islands retain their shared texture space within each texture set.
• Work with familiar shaders. 16 included input profiles cover common shaders of all three pipelines: Standard (metallic and specular), Autodesk Interactive, the Legacy and Mobile shaders, URP Lit, Simple Lit, Baked Lit and Unlit, and HDRP Lit and Unlit. Other shaders can be configured by hand.
Mesh combining
• Combine nearby props. Merge groups bring props together into combined meshes, reducing the number of renderers.
• Retain baked lighting. Lightmap scale and offset are incorporated into the combined meshes' lightmap UVs, preserving their existing baked lightmap mapping. Directional, SH and vertex-lit lightmapping carry over too.
• Mix materials. Members may use different materials, each kept as its own submesh. Members that a bake spread over several lightmaps can be split into one group per lightmap in one click, and light-probe-lit members combine when their lighting stays the same.
• Restore your originals. Original objects remain in the scene with their renderers hidden, and their colliders and scripts retained. Restore them and revise your groups whenever needed.
Prop library and workflow tools
• Share props across projects. Maintain a reusable prop library in one shared folder, preserving asset references when importing into your projects.
• Import Substance 3D Painter exports. Create materials for your project's pipeline (Standard, URP Lit or HDRP Lit), metallic or specular, directly from Adobe Substance 3D Painter texture export folders.
• Compare before and after. View material counts, textures, texture memory and draw calls throughout the tool.
• Get suggestions. Find proposes atlases and merge groups for your open scenes, each planned like a real one before you create it.
• Check before building. Build Check flags out-of-date generated outputs so you can review them before creating a build, in the editor or from the command line on a build machine.
Included sample
Try the workflow on the included tea-service sample, which goes from 12 renderers and 3 materials to 1 renderer and 1 material through atlasing and mesh combining.
Good to know
• With Tiled textures on, tiling surfaces such as floors are atlased tile by tile (up to 8 repeats), so each repeat takes its own atlas space.
• Skinned meshes can be atlased but not combined.
• Combining happens in the editor; there is no runtime combining.
Requirements and compatibility
• Unity: 2022.3 LTS (2022.3.6 or later) through Unity 6.6.
• Render pipelines: Built-in, Universal Render Pipeline (URP) and High Definition Render Pipeline (HDRP).
• Editor only: No runtime scripts are added to your builds.
• Implementation: C# only, with no native plugins.
• Testing: Tested on the Windows editor; macOS and Linux editors are not tested yet.
Support
Contact texelwright@protonmail.com for help.
Use Help > Report a Problem to generate a report you can include with your support request.
Documentation: in the package (Kit Optimizer/Documentation) and at texelwright.netlify.app.
Uses xatlas (MIT licence) for chart placement; see Third Party Notices. Sample content: CC0 models and materials from Poly Haven.