jinincarnate / off-screen-indicator

A simple solution for implementing target indicator, waypoint or HUD navigation system in unity.
GNU General Public License v3.0
84 stars 16 forks source link

off-screen-indicator

A simple solution for implementing target indicator, waypoint or HUD navigation system in unity.

Asset store asset is outdated by one commit on 4th June 2020, will remove this statement when its updated on asset store.

Unity Will always try to keep the asset store version updated but you can always get the latest version from the Repository.

Steps to setup up the targeting system

NOTE : To enable/disable the indicator at runtime for a target in the scene just enable/disable the target script on your target gameobject.(The targets get dynamically added and removed from the targets list as you enable or disable them in the scene).

NOTE: There is a ‘DefaultExecutionOrder’ attribute added on the ‘OffscreenIndicator’ class and the ‘Target’ class. Make sure that the attribute’s value of ‘OffscreenIndicator’ class should be always less than the ‘Target’ class, so that the ‘OffscreenIndicator.cs’ would always run before the ‘Target.cs’.

Modifying or creating your own arrow and box prefabs

NOTE: Make sure the sprite you use for the arrow prefab, its orientation should be the same as the default white arrow sprite image provided i.e, its tip should be pointing towards the middle right.