void Update() { // Follow the avatar it has been made for. Vector3 target = uiController.GetTarget(tag); Vector3 screenPos = cam.WorldToScreenPoint(target); Vector3 offset = new Vector3(0, offsetRelativeY * Screen.height, 0); Vector3 wantedPos = screenPos + offset; transform.position = wantedPos; }