https://github.com/mminer/position-visualizer
Unity editor tool to visualize positions in the scene.
https://github.com/mminer/position-visualizer
game-dev game-development gamedev unity unity3d
Last synced: 20 days ago
JSON representation
Unity editor tool to visualize positions in the scene.
- Host: GitHub
- URL: https://github.com/mminer/position-visualizer
- Owner: mminer
- License: mit
- Created: 2025-03-03T03:46:41.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T05:01:36.000Z (about 2 months ago)
- Last Synced: 2025-03-25T13:11:13.565Z (about 1 month ago)
- Topics: game-dev, game-development, gamedev, unity, unity3d
- Language: C#
- Homepage:
- Size: 3.45 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Position Visualizer
A Unity utility to visualize positions in the scene view. Debug spatial
relationships, visualize algorithm outputs, or mark important positions in your
scene.
## Installation
Add the package to your project via
[UPM](https://docs.unity3d.com/Manual/upm-ui.html) using the Git URL
https://github.com/mminer/position-visualizer.git. You can also clone the
repository and point UPM to your local copy.## Usage
After installing the package, the **VP** (Visualize Position) button
appears in the scene view toolbar. Click this to open the overlay.
From the overlay, add points by entering X, Y, and Z coordinates and clicking
"Add". Click "Clear" to remove all points.
Points are automatically saved to EditorPrefs and restored when Unity restarts.
Visualized points are editor-only and will not affect builds.### Scripting API
You can also add points programmatically.
```csharp
using PositionVisualizer;...
Points.Add(new[] {
new Vector3(1, 0, 0),
new Vector3(0, 4, 0),
new Vector3(6, 0, 2)
});Points.Clear();
```## Preferences
The appearance of points — color, size, and so forth — can be customized in the
*Position Visualizer* section of Unity's preferences.
- **Draw 3D Point**: Toggles between constant size or distance-scaled points
- **Point Color**: Sets the default color for points
- **Randomize**: When enabled, assigns random colors to new points
- **Point Shape**: Displays points as cubes or spheres
- **Point Size**: Adjusts the size of points
- **Show Label**: Toggles whether to show the point's coordinates