Question by
jdsteixeira · Jun 06, 2018 at 04:17 PM ·
c#ui
Rotating UI RawImage while moving it upwards
Hi peeps.
So, I'm trying to get a map image to offset on the V coordinate to simulate an infinite map, but I would like to also rotate it as well. That is all done but I would like to maintain the movement direction upwards, like a moving map on a car GPS.
What I did was offset the V coordinate by drawing a new UV Rect on update. What I did to rotate the map was transform.rotate the RawImage object.
But rotating the object also changes the direction of the UV Rect. How can I solve this?
Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612164234im_/https://answers.unity.com/themes/thub/images/avi.jpg)