i’m a newbie and making a 2D game when you can drag things around and rotate it with touches, but i got a little problem on rotation.
here is my bus before rotation(it’s using Image, so it has rect transform component):
when i rotate using script or inspector(by changing the rotation value on Z), it goes like this:
as you notice, the bound gets bigger as the object rotates.
but, when i rotate the object using the rotation tools on upper left, it goes like this:
the bound rotates with the object, this is what i want to achieve via script, instead the bound getting bigger.
why is that? both ways above change the same Z rotation value on rect transform component.
how can i rotate both the object and its bound via script as shown in last screenshot?
thanks
i’m using Unity 5