How to create directional arrow that player must follow?

So basically we’d have arrow widget either at the top of the screen or infront of player that tell player this is the shortest path to the destination if we faced away or look at the left/right the arrow would change to the ‘correct’ path in response of the player’s camera, like a* algorithm, I have googled but cant find the tutorial that explain how to do something like this.

The shortest path to any destination is a straight line - Do you instead want the A* algorithm to find the best path through a maze for example, and then the arrow will change direction to show which way you should be going through the maze as opposed to the centre being in X direction?

If you just want to arrow to point in the direction you need to get to, simply normalise the vector (Destination - Current Position) and then set the arrow to point down that direction. A* pathfinding is a little more complex and will probably require more setup of your scene as IIRC it is based on set values for certain terrian and blockers and other factors.