Create a Custom Compass / Radar

v1.0

Creating a new Compass or Radar with your own UI element should be fairly straight forward. The video below walks through the process.

Copy an existing Compass or Radar

First, copy an existing Compass or Radar. This is the easiest way to get started. Name it appropriately, and it will show up in the Northstar Menu with the rest.

Edit the prefab

Open up the prefab, and edit the children of the Compass or Radar. Add additional UI elements, custom code, and more. Whatever you'd like.

Any child object which has a Compass Icon component will show up in the Preset Objects section of the Compass or Radar component on the parent.

This is where you can select how the objects move with the Compass or Radar.

Manage tracked objects

The Demo Wolf objects, Berries, Demo Targets and the Demo Goal Target in the demo scene are all tracked objects. To be tracked by a compas or radar, objects should have a Tracked Target Compass Radar component on them.

This component determines how the object will be tracked, along with a custom icon, if not using the Default Tracked Icon Prefab set in the Compass or Radar.

Don't forget you can also override certain aspects of the tracked icons at runtime. Check the Runtime Overrides Compass / Radar page for more details.

Last updated