Hello, I am trying to rotate my camera using the scroll wheel.
What I’m saying is: The player press the mouse wheel and move to the left or to the right, so, the camera will rotate to the selected side.
How can I do this?
PS: The scroll wheel needs to be pressed to be able to spin.
Do you have the code to rotate your camera already set up? If so, all you need to do is enclose it in:
if (Input.GetMouseButton(2))
{
//rotation code goes here
}