2D sprite import - set rotation

Hi Guys,

I have a 2D tank that shoots a missile, when original sprites were imported I had the tank barrel drawn horizontally while the missile was drawn vertically so when the tank shoots, I need to offset missile sprite by 90 degrees to get the right to alignment, I also need to maintain this 90 degrees offset all the time along the path of the missile.
This works but feels a bit hack-y I was wondering is there a way to set sprite rotation during import? of if there are standard practices to deal with situations like that?
One way is probably to edit the origin sprite to the correct orientation before import.

Thanks in advance.

What did you end up doing?

I ended up just rotating the image before importing to Unity. Then I don't have always rotate it in Unity.

1 Answer

1

Why don’t you try to put it as a child of an empty GameObject and you set the rotation or the wanted position in the empty GameObject so you don’t change your sprite?