Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/commanderfoo/unity-horizontal-compass
Experimenting with a simple horizontal compass that you can add waypoints too.
https://github.com/commanderfoo/unity-horizontal-compass
csharp unity3d
Last synced: 2 months ago
JSON representation
Experimenting with a simple horizontal compass that you can add waypoints too.
- Host: GitHub
- URL: https://github.com/commanderfoo/unity-horizontal-compass
- Owner: CommanderFoo
- License: mit
- Created: 2018-03-04T11:38:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T12:01:15.000Z (almost 7 years ago)
- Last Synced: 2024-09-17T20:09:41.015Z (5 months ago)
- Topics: csharp, unity3d
- Language: C#
- Homepage:
- Size: 4.58 MB
- Stars: 25
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
A basic horizontal compass that allows you to add waypoints to it.
It's not perfect, and I'm sure there are better ones out there, but hopefully it helps someone get a starting point.
![Screen Shot](https://i.imgur.com/3eOLtlF.png)
The project has an example of adding 2 waypoints to the compass. It's pretty simple.
// First param is a unique key for this waypoint so you can access it later (i.e remove it).
// Second param is the waypoint with icon and target.
Horizontal_Compass.instance.add("test", new Waypoint(){
icon = this.icon,
target = this.obj
});There are a few 3rd party assets I used.
- http://dotween.demigiant.com
Used to fade in and out the waypoints when they get close to ends of the compass.
- https://assetstore.unity.com/packages/essentials/beta-projects/textmesh-pro-84126
Used for the text on the compass (N, E, S, W).
- https://bitbucket.org/UnityUIExtensions/unity-ui-extensions
I used the mask effect for the ends of the compass just to give it a better look.