Skip to content

CloudyBlunt/Unity-Rotating-Compass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rotating compass for your 3D Unity project

A pretty simple on-screen rotating compass, with text degreeses

How to use it:

  1. First, you need to download and put these 2 files into your scripts folder
  2. After, you must to change the texture type of the "CompassUI" to "sprite (2D and UI)"
  3. 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 -

Alt text

  1. 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

Alt text

And if everything is ok, youll get something like this

Alt text

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.

About

A simple, rotating compass for your unity first person project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages