Slicing in Sprite Editor

Hi there,
I have a 1024x1024 sprite.

My need is to cut this sprite up into 4 sections, each 512x512. I was thikning I could use the Sprite Editor, which I may be but when I do create a slice and hit Apply, no new file is found.

So, is Sprite Editor best for this, or Photoshop and where did the new Sprite file go?!

Thanks

Those params you changed (slicing) are for 9-sliced tiles.

It looks like you want just to make four separate tiled sprites out of this perhaps??

Set the sprite to multiple (out in the inspector) and apply, then go in and slice it into 2x2 pieces.

You can slice by pixel size or by column / row count… upper left, once you have selected multiple sprite.

AWESOME!Thanks
Sorry one other quesiton do get each slice, into the scene. Do I need to select them one by one?

Yes, so after slicing and hitting Apply in the Sprite Editor, you will be able to find your sprite slices grouped inside your sliced texture in the Project window. This helpful tutorial Cut images in the Sprite Editor Unity shows exactly that at timestamp [02:58]. It also demonstrates how to select any of the sliced sprites to drag-and-drop them in the Scene.

Small tip: If you have many sliced sprites, consider multi-selecting the ones you want, then holding down the alt key (or the opt key on Mac) while dragging them into the Scene. This brings in all the selected sprites in one click.

Alternatively, you may also select the entire texture, also holding down the alt/opt key then drag it into the Scene to bring in all of the sliced sprites from the texture. In both cases, holding down the alt/opt key is to prevent Unity from creating a flipbook animation sequence out of the sliced sprites which may be what users want sometimes just not in this case. Hope this helps! :wink:

1 Like

Thank you for your tips - they are really useful!

However I have another question regarding this topic:
When I drag and drop multiple sprites into the scene using alt key, they all appear in the same position (0,0,0), however since I am creating a puzzle game, my texture is divided into multiple sprites and it would be a huge time saver if the sprites would automatically form the same picture that I have in the sprite editor. In case of the picture that renman3000 posted - it has only 4 sprites, and it’s pretty easy to relocate the sprites back into their initial positions, but in my case I have 50+, 100+, 200+ sprites per image and it’s pretty much time consuming to manually relocate each sprite to it’s initial position.

Is there a way to just do it in a matter of few clicks?