0
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\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\$ Commented Feb 22, 2020 at 0:27

1 Answer 1

1
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks. I downloaded Paint.net and now unity split the picture into sprites quite easily. \$\endgroup\$ Commented Feb 15, 2020 at 17:29

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.