{"id":28281122,"url":"https://github.com/inborastudio/measurement-tool-unity","last_synced_at":"2026-03-06T14:34:15.926Z","repository":{"id":293100392,"uuid":"982946864","full_name":"InboraStudio/Measurement-Tool-Unity","owner":"InboraStudio","description":"A powerful, customizable Unity tool for measuring distances and angles directly in the Scene View. Perfect for level designers, environment artists, and developers who need precision measurement in real time.","archived":false,"fork":false,"pushed_at":"2025-05-13T16:48:21.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T11:15:37.368Z","etag":null,"topics":["developer-tools","editor-extension","game-development","level-design","unity","unity-editor","unity-plugin","unity-tools","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InboraStudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-13T16:33:30.000Z","updated_at":"2025-05-20T04:46:38.000Z","dependencies_parsed_at":"2025-05-13T17:48:23.263Z","dependency_job_id":"3c3e94b9-6053-4a64-9b1c-97357eb02d76","html_url":"https://github.com/InboraStudio/Measurement-Tool-Unity","commit_stats":null,"previous_names":["inborastudio/measurement-tool-unity"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/InboraStudio/Measurement-Tool-Unity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InboraStudio%2FMeasurement-Tool-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InboraStudio%2FMeasurement-Tool-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InboraStudio%2FMeasurement-Tool-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InboraStudio%2FMeasurement-Tool-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InboraStudio","download_url":"https://codeload.github.com/InboraStudio/Measurement-Tool-Unity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InboraStudio%2FMeasurement-Tool-Unity/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260251149,"owners_count":22980977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","editor-extension","game-development","level-design","unity","unity-editor","unity-plugin","unity-tools","unity3d"],"created_at":"2025-05-21T11:15:35.316Z","updated_at":"2026-03-06T14:34:15.823Z","avatar_url":"https://github.com/InboraStudio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Measurement Tool\n\nA Unity tool for measuring distances and angles in your scenes. Ideal for game designers, level designers, and anyone who needs precise measurements in their Unity projects.\n\n![image](https://github.com/user-attachments/assets/95c21cc0-6bd9-41c7-9003-f43caf649842)\n\n\n## Features\n\n- **Distance Measurement**: Click two points to measure the distance between them\n- **Angle Measurement**: Hold Shift while dragging to measure angles (displayed in degrees)\n- **Visual Feedback**: Clear visual markers and lines show the measured paths\n- **UI Display**: Distance and angle measurements are displayed in an easy-to-read UI\n- **Easy Toggle**: Press 'M' key to toggle the tool on/off (customizable)\n- **Customizable Look**: Change colors, line width, and appearance to match your project\n- **Mouse Tracker Integration**: Easily integrate with the PhotoLabs MouseTracker\n\n## Installation\n\n1. Import the `MeasurementTool` folder into your Unity project's Asset folder\n2. Add the `MeasurementToolManager` component to any GameObject in your scene\n---\n![image](https://github.com/user-attachments/assets/9e3b7d81-d8f8-4fe3-a778-765dba5816f3)\n\n\n## Quick Setup\n\nThe fastest way to get started:\n\n### Method 1: Using the Menu (Recommended)\n\n1. In Unity, go to `PhotoLabs \u003e Spectator \u003e Add Measurement Tool`\n2. The tool will be added to your scene automatically with all necessary components\n3. Press play and use the 'M' key to toggle the tool\n\n### Method 2: Manual Setup\n\n1. Create an empty GameObject in your scene\n2. Add the `MeasurementToolManager` component to it\n3. Press play and use the 'M' key to toggle the tool\n\n## Integration with Mouse Tracker\n\nIf you want to add the Measurement Tool to the existing Mouse Tracker:\n\n1. In Unity, go to `PhotoLabs \u003e Spectator \u003e Add Measurement Tool To Mouse Tracker`\n2. The tool will be integrated with your existing MouseTracker\n3. Press play and use the 'M' key to toggle the tool\n\nYou can also manually add the `MeasurementToolManager` component to your MouseTracker GameObject.\n\n## Usage\n\n- **Toggle Tool**: Press 'M' key (or your custom keybind) to activate/deactivate\n- **Measure Distance**: \n  - Click once to place the first point\n  - Move to the desired location\n  - Click again to place the second point and measure distance\n- **Measure Angles**:\n  - Hold Shift\n  - Click and drag from the first point to the second (angle vertex)\n  - Release and move to the third point\n  - Click to complete the angle measurement\n\n## Customization\n\nThe `MeasurementToolManager` component has several customizable properties:\n\n- **Toggle Key**: Change the key used to activate/deactivate the tool\n- **Measurement Color**: Set the color of the measurement lines and indicators\n- **Line Width**: Adjust the thickness of the measurement lines\n- **Measurable Layers**: Specify which layers can be measured (default: all layers)\n- **UI References**: Customize the UI by providing your own prefabs\n- **Point Markers**: Use custom prefabs for the measurement points\n- **Angle Markers**: Use custom prefabs for the angle visualization\n\n## Advanced Usage\n\n### Custom UI\n\nYou can create your own UI prefab and assign it to the `uiPrefab` field of the `MeasurementToolManager`. The prefab should contain:\n\n- A TextMeshProUGUI component for distance display\n- A TextMeshProUGUI component for angle display\n\n### Custom Point and Angle Markers\n\nCreate custom prefabs for the measurement points and angle visualization and assign them to the respective fields in the `MeasurementToolManager`.\n\n## Troubleshooting\n\n### I can't see the tool in my scene\n\n- Make sure you have added the `MeasurementToolManager` component to an active GameObject\n- Press the 'M' key to toggle the tool ON (it's OFF by default)\n- Check if the tool is active in the Hierarchy window\n\n### The tool doesn't show up in the Mouse Tracker\n\n- Use the menu option `PhotoLabs \u003e Spectator \u003e Add Measurement Tool To Mouse Tracker`\n- Ensure the MouseTracker GameObject is named \"MouseTracker\" exactly\n- Make sure TextMeshPro is installed in your project\n\n## Requirements\n\n- Unity 2019.4 or newer\n- TextMeshPro package\n\n## Credits\n\nDeveloped by Dr Chamyoung for use in Unity projects. Feel free to modify and extend this tool to suit your needs. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finborastudio%2Fmeasurement-tool-unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finborastudio%2Fmeasurement-tool-unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finborastudio%2Fmeasurement-tool-unity/lists"}