I currently wanted to rotate a Unity UI image from its center. But when I rotate from the rotation.z, it will rotate but not from center. Is there a way to solve this?
I found in one of the unity tools which control rotations. When I drag the blue circle, it will rotate the image from the center(position.x and position.y changes relative to the rotation.z). Is there any way to emulate this in the C# script?