How to make a game objective pointer?

Hey everyone,
I was wondering if anyone knew how to make a game objective pointer, so like a GUI arrow at the top of the screen that points in the direction that the player would have to go to reach an objective…

Any answers are appreciated!!!

-Grady

First, get the position of wherever the objective is. Then, subtract the position of your character from that position to get the direction vector. Then, depending on the direction vector, switch the texture being displayed (if you have multiple images representing different directions) or rotate the texture using GUIUtility.RotateAroundPivot (if you just have one texture for the arrow and are displaying it using OnGUI).