All I’m trying to do, is to get an object to rotate on it’s Z axis to “look at” the current mouse position. The camera is orthographic and the object in question does not need to move or rotate in any other way. This camera does not move either.
I need this as an aim mechanic for a Bust-a-move style game project.

What is the easiest way to do this? Every script I’ve attempted to use has thrown errors for me.
Attach this script to the object you want to rotate:
public class MouseRotator : MonoBehaviour {
public void Update() {
Vector3 mousePositionInWorld = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Vector3 toMousePosition = mousePositionInWorld - transform.position;
transform.up = toMousePosition;
}
}
The first line calculates the world position of the mouse pointer.
The second line calculates the vector that points from the object’s position to the mouse’s position.
The third line sets the object’s up direction, so that it points to from the object to the mouse, causing the object to rotate.