# Scene Compass

> A zero-runtime Unity editor utility for measuring, bookmarking, and navigating scenes with one-key workflows.

## Overview

Scene Compass is a small, focused editor utility that replaces tape-measure GameObjects and "Viewpoint\_v12" empties with two tools:

-   a **measure** mode that draws distances between any two points in a scene with a single key,
-   a **bookmark** system that saves viewpoints and GameObjects into named groups you can jump to from a hotkey.

There's no runtime component, no manager, no scene asset. Everything lives in `EditorPrefs` / `ProjectSettings` so it stays out of your builds.

## Requirements

-   Unity **2020.3 LTS** or newer
-   Editor-only — does not affect runtime, IL2CPP, or AOT platforms

## Installation

### Unity Asset Store

[Scene Compass is free](https://assetstore.unity.com/packages/slug/319827). Add it to your account, import via Package Manager, and the `Window/Scene Compass` menu appears.

### UPM via Git URL

1.  Open **Window → Package Manager**
2.  Click the **+** menu → **Add package from git URL…**
3.  Paste: `https://github.com/simple-yet-efficient/scene-compass.git`
4.  Click **Add**

### Manual `.unitypackage`

Download the latest release from [GitHub Releases](https://github.com/simple-yet-efficient/scene-compass/releases) and import via **Assets → Import Package → Custom Package…**.

## Measure tool

### Single measurement

-   Hold **M** and hover over the scene view.
-   Click once to set the start point, move the cursor, click again to set the end point.
-   The distance is rendered as a floating label between the two points.

### Multi-segment paths

-   Hold **Shift + M** instead of just **M**.
-   Every click adds a new segment. Release the modifier to finish.
-   The total path length is shown alongside each segment length.

### Snapping

Points snap to GameObject pivots by default. Hold **Ctrl** (Cmd on macOS) while clicking to snap to vertices instead.

## Bookmark system

### Save a viewpoint

Press **Alt + Shift + B** with the Scene view focused. A dialog appears:

-   **Name** — the label shown in the Bookmarks window.
-   **Group** — optional. Creates a new group if one doesn't exist.
-   **Type** — _Camera view_ saves position + rotation + FOV; _GameObject_ saves a reference + framing offset.

### Jump to a bookmark

Press **Alt + B** to open the Bookmarks window. Click any bookmark to teleport the Scene view camera. Double-click to also select the underlying GameObject.

### Organise bookmarks

Drag between groups, rename with **F2**, delete with **Del**. Everything is stored per-project in `ProjectSettings/SceneCompassBookmarks.json`, so the data is under source control with the rest of the project.

## Keyboard shortcuts

| Shortcut | Action |
| --- | --- |
| `M` (hold) | Single-measurement mode |
| `Shift + M` (hold) | Multi-segment path mode |
| `Alt + B` | Open Bookmarks window |
| `Alt + Shift + B` | Add current view / selection as bookmark |

Shortcuts are customisable via **Edit → Shortcuts…** under the **Scene Compass** category.

## Project settings

Open **Edit → Project Settings → Scene Compass** to configure:

-   **Line colour and width** for the measure tool
-   **Label font size** and **decimal precision**
-   **Bookmark file path** (defaults to `ProjectSettings/`)
-   **Auto-save on bookmark change** toggle

## Best practices

-   **Treat bookmarks as documentation.** Naming a viewpoint `"T-Junction — LOD bug repro"` beats scribbling in a Notion doc.
-   **Group by task.** One group per level, feature, or sprint keeps clutter manageable.
-   **Commit the JSON.** Other team members get your bookmarks the moment they pull.

## Troubleshooting

| Symptom | Fix |
| --- | --- |
| Shortcut doesn't work | Another asset is grabbing `M` — check **Edit → Shortcuts** |
| Bookmark teleport looks wrong | FOV differs between bookmark and current Scene; re-save the view |
| Measure labels overlap | Reduce **Label font size** in Project Settings |

## Support

Source on [GitHub](https://github.com/simple-yet-efficient/scene-compass). Open an issue for bugs, discussion, or feature requests. Scene Compass is MIT-licensed.
