Okay, so I am very new to Game Development and I imported a .png file(made in Paint) to the assets and that file contains just a circle and an oval, not touching and far apart from each other, both of them coloured blue. When I open the sprite editor and click on splice, then select Automatic and Delete existing options and then click slice, I do not get different sprites, one containing the circle and the other containing the oval. The image isn't sliced at all. I have also set the sprite mode to Multiple, but to no avail.

Can someone help me and tell me what I am doing wrong? The engine I am using is Unity.

This is the image.

  • \$\begingroup\$ If you are having difficulties, try to do it manually. If you don't want to do that, I think you should define the cell size for each sprite. So they couldn't be that far from each other. See: docs.unity3d.com/Manual/SpriteEditor.html \$\endgroup\$ – Boneco Sinforoso Feb 22 at 0:27

Unity will recognize this as one sprite because it doesn't realize that white is supposed to be non-solid. Why would it? White is a color like any other. You could slice this manually in the sprite editor by dragging a rectangle over each object with the left mouse button, but that way you will end up with a circle and an oval on white rectangles.

If the white parts are meant to be transparent, then you have to use an image editor which can create PNG images with actual transparency. MSPaint can't do that, but there are lots of alternatives available which can. GIMP, Krita or Paint.NET are some examples of alternatives which don't cost any money. Aseprite or Photoshop are examples of paid products which some game developers think are worth their money.

| improve this answer | |
  • \$\begingroup\$ Thanks. I downloaded Paint.net and now unity split the picture into sprites quite easily. \$\endgroup\$ – Pratham Yadav Feb 15 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.