Join the Discord

Unity tools by Magic Pig Games

Northstar Navigation

Show players where things are: compass, radar, nav bar, screen and edge icons

Northstar Navigation is a Unity asset by Magic Pig Games that adds a compass, radar, horizontal compass bar, on-screen waypoint markers and off-screen indicators to your game. Mark any enemy, quest objective or pickup as tracked, and the player can see where it is.

Version 1.2.1 · updated June 14, 2026 · Unity 6.0 or newer

What Northstar Navigation does

  • Compass and radar

    Choose from 17 compass and 5 radar styles, with icons that fade by distance or height difference. The radar sweeps a line that pings blips, and an optional component hides blips that are out of line of sight.

  • Screen and edge overlays

    Icons sit over objects in view and transition smoothly to edge icons and arrows when the objects go off-screen. Size, color and opacity blend during the transition.

  • Horizontal navigation bar

    A horizontal compass bar shows tracked objects within a visible angle you set and can fade them near its ends. Fixed markers like cardinal directions and tick marks stay on the bar.

  • Each object picks its displays

    Add a tracked-target component to an enemy, pickup, NPC or objective. Each object sets its own icon, color, offset, draw order and which displays show it.

  • Distance labels and fade curves

    Show the distance to a target under its icon, in meters with short numbers like 1.5K. Curves scale or fade icons as the player gets closer or farther away.

  • Reusable overlay settings assets

    Northstar Overlay Settings assets hold the look for a kind of target: sprites, colors, sizes and distance ranges. The Make Unique button gives one object its own copy, so you don't edit a shared asset by accident.

  • Runtime overrides by type

    At runtime, recolor, resize or fade one icon or every target of a type, such as all "Enemy" icons, and swap overlay sprites. Reset calls return icons to their settings.

  • Built to extend in C#

    Subclass the distance text, icons, compass, radar or navigation bar, or add your own component to an icon prefab. The demo uses this for a hold-to-collect progress bar and floating health bars.

Works with AI coding assistants

Northstar Navigation comes with skills for AI coding assistants such as Claude Code and Codex. Once they're installed, your assistant knows how Northstar Navigationworks, so you can ask for what you want in plain English:

  • “Track this enemy on the compass and show its distance on screen.”
  • “Make quest objectives show an off-screen edge arrow that fades as I get closer.”
  • “Put a marker over the NPC and show it on the navigation bar too.”
  • “Write a custom distance label that says CLOSE, NEAR or FAR instead of meters.”
  • “Build a hold-to-collect progress bar on the pickup icon like the Berries demo.”

How it works

Northstar is two independent systems, and each tracked object can use one or both.

  • Compass or Radar. One Compass or Radar per scene shows tracked objects around the player at the center. Add TrackedTargetCompassRadar to an object and pick a Tracking Type: Relative Point places its icon at the object’s bearing and distance, and other types point north, point at the target, or show the player’s facing.
  • Screen & Edge Overlay and Navigation Bar. The Northstar Screen Overlay draws an icon over each object with a TrackedTargetOverlay component. When the object leaves the view, the icon can move to the screen edge with an arrow pointing toward it. The optional Navigation Bar shows the same objects on a horizontal compass bar, next to fixed markers like cardinal directions and tick marks.

Add displays from GameObject > Northstar > Create Window. It lists the included styles (17 compasses, 5 radars and 3 navigation bars), allows one compass or radar and one navigation bar, and keeps your player reference when you swap styles. Set the player on the compass or radar and the camera on the overlay, then press Play.

Overlay icons take their look from Northstar Overlay Settings assets: sprites, colors, sizes, distance ranges, and curves that scale or fade an icon with distance. One asset is the default, and any tracked object can use its own and override only the values it needs. We include presets such as Default, Wolf, Locations and Blue Berries, plus over 100 sprites.

Each tracked object has a Target Type, such as “Enemy” or “Objective”. At runtime, override methods change the color, size or opacity of one icon or every icon of a type, and overlay icons can swap sprites: NorthstarOverlay.Instance.SetOverrideColor("Enemy", Color.red). A matching ResetOverride call puts it back.

Extending it in C#

The core classes are meant to be subclassed. Override DistanceText.UpdateText() to change the distance label, or extend OverlayIcon, CompassIcon, Compass, Radar or NavigationBar. You can also add your own component to an icon prefab and read the icon’s DistanceToTarget and PercentToEdge; the demo scene does this for a hold-to-collect progress bar on berry pickups and floating health bars on wolves. TrackedTargetOverlay.OnIconCreated hands you the screen icon as soon as it exists. The scripting documentation covers the rest.

Set it up with an AI assistant

Northstar includes skills that let Claude Code, Codex, Cowork or other AI assistants add displays, mark objects as tracked, swap prefabs, override icon graphics and write custom code. They work with or without Unity AI (MCP): with it, the assistant builds in the open Editor; without it, the assistant writes an editor script with a menu item for you to run.

  1. Install Claude Code, Codex or Cowork.
  2. For Claude Code or Cowork, run bash "Assets/Magic Pig Games (Infinity PBR)/Northstar Tracking System/Claude Skill/install.sh" in your project. For Codex, copy the northstar folder from that Claude Skill folder into .agents/skills in your project.
  3. Ask “What can you do with Northstar?” to confirm the skills are active.
  4. Ask for what you want in plain English.

More videos

Questions about Northstar Navigation

Is Northstar Navigation the same as the Northstar Tracking System?

Yes. The same Asset Store package is also called Northstar Navigation and Tracking System, Northstar Nav & Tracking, and Northstar Tracking System in its docs, videos and project folder.

Can I use a compass, a radar and a navigation bar at the same time?

A scene can have one Compass or one Radar, plus the Screen & Edge Overlay and one Navigation Bar. Each tracked object chooses which of these displays show it.

How do I make an object show up on the compass or on screen?

Add a Tracked Target Compass Radar component for the compass or radar, and a Tracked Target Overlay component for screen, edge and navigation bar icons. The matching display has to be in the scene, and the icons appear when you press Play.

Can Northstar show off-screen indicators and the distance to a target?

Yes. With the edge overlay on, the icon moves to the edge of the screen in the direction of the object and can show an arrow. For distance, use the included Northstar Icon Distance prefab or add a Distance Text component to your icon; it shows meters by default.

Can I change icons at runtime, for example when an enemy spots the player?

Yes. Call override methods such as NorthstarOverlay.Instance.SetOverrideColor on a single icon or on every target of a type, like "Enemy". Call the matching ResetOverride method to return to the settings.

Which Unity versions and render pipelines does Northstar Navigation support?

Unity 6.0 or newer. The Unity 6.0 version defaults to the Built-in Render Pipeline and the Unity 6.3+ version defaults to URP; the code is the same in both.

Can AI coding assistants like Claude Code or Codex set up Northstar Navigation?

Yes. The package includes skills that let Claude Code, Codex, Cowork or other AI assistants add displays, mark objects as tracked, override icon graphics and write custom code, with or without Unity AI (MCP). Run the bundled install.sh in the package's Claude Skill folder to install them for Claude Code and Cowork, or copy its northstar folder into .agents/skills for Codex.