A downloadable tool

Download NowName your own price

This asset provides a component script with a button that will combine specified SpriteRenderer sprites in a Unity scene into one big texture.

This process can save hundreds of batches, especially for 2D sprite-based games that use Unity Lighting and frequently display many static environmental assets. The example shown in the video cuts the number of batches from 477 to 200. It has been very helpful for saving CPU usage when porting to the Nintendo Switch, or targeting lower-end computers, even in pixel art games.

See SimpleSpriteCombine.cs in the package contents after importing for directions on how to use.

Note that for SpriteRenderers that use different materials or tint colors, separate combined sprites will need to be generated.

This package is dependent on the NaughtyAttributes Unity Asset, so you will need to import that asset into your project before Simple Sprite Combine will compile.

For those curious, the artwork used in the example screenshots and icons for this asset are from the game Batbarian: Testament of the Primordials, used with permission from Unspeakable Pixels.

This asset uses Generic RPG Pack for sprites in its demo scene, under the CC0 1.0 Universal (CC0 1.0) license; see "Third Party Notices.md" file in package for details.

Published 1 day ago
StatusReleased
CategoryTool
AuthorFletcher
Made withUnity
Tags2D, batching, cpu, gpu, performance, Pixel Art, Sprites, Unity
Code licenseMIT License
Asset licenseCreative Commons Zero v1.0 Universal
LinksSupport

Download

Download NowName your own price

Click download now to get access to the following files:

SimpleSpriteCombine.unitypackage 71 kB

Comments

Log in with itch.io to leave a comment.

(+1)

Great tool! Combining sprites into one texture can really boost performance in Unity. Thanks for providing a simple solution and sharing details about the dependencies and art assets. This will help a lot of devs optimize their games!