title: How can I lock my camera Z axis rotation in Unity?
body: <p>I am using my mouse position to rotate my camera:</p>
  
  <pre><code>void FixedUpdate()
  {
      transform.Rotate(-Input.GetAxis("Mouse Y") * rotationspeed * Time.deltaTime, Input.GetAxis("Mouse X") * rotationspeed * Time.deltaTime, 0);
  }
  </code></pre>
  
  <p>The problem is that after rotating it for a time the camera starts rotating on the Z axis as well. What should I do to lock the Z axis rotation of the camera?</p>