# Make an arrow to point at a direction from UI

I want to have a guiding arrow on the left side of UI. The arrow is child of the player's camera and it's rendered from another camera into render texture. The render texture is displayed on the screen. The arrow is rotated via transform.LookAt(targetPosition) The problem I'm having is that although it does point in the right direction, form player's point of view it looks like the arrow is pointing somewhere else. I want that arrow to point from the point where it's placed on the UI. It should look something like this: I tried to do this:
Vector3 direction = targetPosition - _arrowRawImage.rectTransform.position; _transform.LookAt(direction); but it didn't work.

Vector3 direction = (targetPosition - _arrowTransform.position);