unity C# character rotate to where he is facing code example Example: unity face direction of movement transform.rotation = Quaternion.LookRotation(dir);