Simple Sprite Combine
FletchersLibraries
$0.0
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
03/29(2021) |
0.0 |
11/20(2024) |
0.0 |
Jump AssetStore
This asset provides a component script with a button that will combine specified SpriteRenderer sprites in the 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.