I used the original build of Unity on Linux and everything worked fine, but I updated today to build #2015101801
on Arch Linux, and I’m having issues with player movement now.
I’ve created a new project, created a new Cube, and attached this script to it:
using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
void Update () {
if (Input.GetKeyUp(KeyCode.UpArrow)) {
Debug.Log("Up");
transform.position = new Vector3(transform.position.x + 1f, 0f, 0f);
}
}
}
Two issues happen. First, if “Maximize on Play” is not selected, focus is lost from the Game view after each key press.
Second, I have to hit the arrow keys many times (up to 30 seconds in some cases), to get any movement on the screen.