title: Unity mouse input on mobile
body: <p>I am new to <code>Unity</code> and I am making a first-person game. I followed this video <a href="https://youtu.be/_QajrabyTJc" rel="nofollow noreferrer">https://youtu.be/_QajrabyTJc</a> and when I try on <code>Unity</code> Remote 5 and the camera is not rotating. The code is here :</p>
  
  <pre class="lang-cs prettyprint-override"><code>     public float mouseSensitivity = 100f;
  
      public Transform playerBody;
  
      float xRotation = 0f;
  
  
      void Update()
      {
          float mouseX = Input.GetAxis("Mouse X") * mouseSensitivity * Time.deltaTime;
          float mouseY = Input.GetAxis("Mouse Y") * mouseSensitivity * Time.deltaTime;
  
  
  
          xRotation -= mouseY;
          xRotation = Mathf.Clamp(xRotation, -90f, 90f);
  
          transform.localRotation = Quaternion.Euler(xRotation, 0f, 0f);
          playerBody.Rotate(Vector3.up * mouseX);
  
      }
  </code></pre>
  
  <p>How can I solve this problem? Or is it only because I am using Unity Remote 5, but not on Android mobile?</p>