A pretty simple on-screen rotating compass, with text degreeses
- First, you need to download and put these 2 files into your scripts folder
- After, you must to change the texture type of the "CompassUI" to "sprite (2D and UI)"
- Now, Create a new empty object, and in the new empty object create a new Canvas, then in the new created canvas, create a new text (UI > Legacy > Text), then add a compass image to the canvas, place it as you like, in my case it looks like that -
- Next, you need to add Compass.cs to previously created empty object in the same placee where is your canvas is located, in script setting select your player transform, image of compass, and text degrees
And if everything is ok, youll get something like this
You can use it in every way, everywhere, with and without credits, in closed and open source projects, I don't mind, just do things that you like to do.


