unity3d rotate object to look at player code example Example: unity look at target transform.LookAt(target.transform.position);