look at function in unity code example Example: unity look at target transform.LookAt(target.transform.position);