For Unity 2018.1 and later: SpriteDicing.unitypackage. Check releases for previous versions support.
.NET 4.x scripting runtime is required. Make sure to configure the project before importing the package.
Sprite Dicing is an editor extension for Unity game engine which allows to split up a set of large sprite textures into small chunks, discard identical ones, bake them into atlas textures and then seamlessly reconstruct the original sprites at runtime for render.
This technique allows to significantly reduce build size, in cases when multiple textures with identical areas are used. Consider a visual novel type of game, where you have multiple textures per character, each portraying a different emotion; most of the textures space will be occupied with the identical data, and only a small area will vary:
These original five textures have total size of 17.5MB. After dicing, the resulting atlas texture will contain only the unique chunks, having the size of just 2.4MB. We can now discard the original five textures and use the atlas to render the original sprites, effectively compressing source textures data by 86.3%:
DicedSpriteAtlas
asset using Assets -> Create -> Diced Sprite Atals
menu command, select it;Input Folder
— project directory, containing the source textures you wish to process. You can simply drag-drop a folder from the project hierarchy window into the field;Build Atlas
button and wait for the generation procedure to finish;You can optionally configure the atlas generation settings via the inspector editor window. Consult the tooltips for information on avilable options.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。