rotate according to mouse point

10997-arro.jpghi friends

can any one say how to rotate texture2d according to mouse angle.I need to rotate my texture according to mouse angle

Put the texture onto a plane, and then rotate the plane.

Note that my mouse does not have an angle associated with it, I just have a boring mouse that moves a pointer about the screen. I guess I could draw an imaginary line from the mouse pointer to the centre of the screen, and then use the angle that lines makes with the horizontal axis of the screen to make an angle. If I had such a thing, then I’d just use Transform.Rotate().