unity make character face movement direction code example Example: unity face direction of movement transform.rotation = Quaternion.LookRotation(dir);