using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseLook : MonoBehaviour
{
float horizontalSpeed = 2.0f;
float verticalSpeed = 2.0f;
void Update()
{
// Get the mouse delta. This is not in the range -1...1
float h = horizontalSpeed * Input.GetAxis("Mouse X");
float v = verticalSpeed * Input.GetAxis("Mouse Y");
print(h + ", " + v);
transform.Rotate(v, h, 0);
}
}
as you see, it is just a normal Mouselook script, however, the print value is always 0, 0 and the camera wont move, I’ve check the code and find out the Mouse X and Y are returning 0.
I’ve search up the internet and not yet finding a solution.
Help me pls ;-;