unity c# lookat and match rotation of object' code example Example: unity look at target transform.LookAt(target.transform.position);