Hope Game
Logo Glusoft
Glusoft
Become a Patron! Buy me a coffee!

Sprite sheet

There are multiple case in Unity where you want to use sprite sheets.
The most common scenarios are:

Import sprite sheets

Importing sprite sheet with Unity is simple, just drag and drop the sprite sheets in the resource folder.
If you need a spritesheet you can test with this one : sonic-sprite-sheet.png


Then make sure the Sprite mode is set to Multiple :

Sprite Mode

Then you can open the Sprite Editor :

Sprite Editor

You can slice the sprites, normally you do not need to tchange the default options :

Sprite Editor Slice Menu

If the sprite sheet has been sliced correctly you can click on Apply to confirm the cghange or Revert.

Slice Sprite Editor

After the slicing is done you should have :

After the slicing

In the resource folder you see the sprites :

After slicing in the resource folder
Everything is done you can use the sprites in your game!

Reduce the number of draws calls: Sprite Atlas

If you want to reduce the number of draws calls but you have multiple sprites in your games, you can generate a sprite sheet with unity, those are call Sprite Atlas.


To create a Sprite Atlas you can do it in less than 1 minutes : Right click on you resource folder

Create a Sprite Atlas

Then you can add the sprite you want to pack in the Inspector:

Add images to you Sprite Atlas

You can render you Sprite Atlas with the button Pack Preview.
Unity should be able to use your Sprite Atlas you do not need to do anything else.

Post Comments
Dark theme