{"id":13677426,"url":"https://github.com/harumas/UGizmo","last_synced_at":"2025-04-29T11:30:49.242Z","repository":{"id":238553706,"uuid":"765998076","full_name":"harumas/UGizmo","owner":"harumas","description":"Highly efficient gizmo drawer for Unity","archived":false,"fork":false,"pushed_at":"2024-06-04T08:02:49.000Z","size":527,"stargazers_count":108,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-02T13:17:54.614Z","etag":null,"topics":["debug","debugger","dots","gizmo","gizmos","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harumas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-03-02T04:05:27.000Z","updated_at":"2024-07-30T18:13:50.000Z","dependencies_parsed_at":"2024-06-04T04:38:51.666Z","dependency_job_id":"00f18dbc-d5a7-41bd-8622-3e2c61e2bd61","html_url":"https://github.com/harumas/UGizmo","commit_stats":null,"previous_names":["harumas/ugizmo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harumas%2FUGizmo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harumas%2FUGizmo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harumas%2FUGizmo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harumas%2FUGizmo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harumas","download_url":"https://codeload.github.com/harumas/UGizmo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224163567,"owners_count":17266527,"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":["debug","debugger","dots","gizmo","gizmos","unity"],"created_at":"2024-08-02T13:00:42.046Z","updated_at":"2025-04-29T11:30:49.218Z","avatar_url":"https://github.com/harumas.png","language":"C#","funding_links":[],"categories":["GamePlay","Open Source Repositories"],"sub_categories":["HUD","Gizmos"],"readme":"# UGizmo\n\nHighly efficient gizmo drawer for Unity.\n\n[日本語版](https://github.com/harumas/UGizmo/blob/main/README_JA.md)\n\n[![license](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE.md)\n[![license](https://img.shields.io/badge/PR-welcome-green.svg)](https://github.com/HarumaroJP/UGizmo/pulls)\n[![license](https://img.shields.io/badge/Unity-2021.3-green.svg)](#要件)\n\n![UGizmo-02](https://github.com/harumas/UGizmo/assets/43531665/81bb8462-d39a-4009-a634-dea451ab5f17)\n\n## Overview\n\nUGizmo is a library that adds various features to the standard Gizmos class and allows calls at runtime and the Unity event functions.\nAlso, by using GPU instancing to reduce draw calls, you can draw gizmos efficiently.\n\n## Key features\n\n- Available to be called by event functions such as Update(), LateUpdate(), etc.\n- Runtime support\n- Draw call optimization using GPU instancing\n- More than 30 gizmos\n\n### Draw call optimization\n\nUsing Standard Gizmos  \n\u003cimg src=\"https://github.com/harumas/UGizmo/assets/43531665/34578ce8-c60a-4921-87fc-9aae99132c96\" width=\"400px\"\u003e\n\nUsing UGizmos  \n\u003cimg src=\"https://github.com/harumas/UGizmo/assets/43531665/1cd23670-a982-4679-af8e-b3fa8f7d0bee\" width=\"400px\"\u003e\n\n\n![image](https://github.com/harumas/UGizmo/assets/43531665/28b6614e-e610-4112-88f9-e0760babef3d)\n\n## Getting Started\n\n### Requirements\n- Unity 2021.3 or higher\n- URP or HDRP (Built-in Render Pipeline is not supported)\n\n### Installation\nYou can enter the following link in the Package Manager of Unity\n\n```\nhttps://github.com/harumas/UGizmo.git?path=src/UGizmo/Assets/UGizmo\n```\n\nor open Packages/manifest.json and add the following to the dependencies block\n\n```json\n{\n    \"dependencies\": {\n        \"com.harumaro.ugizmo\": \"https://github.com/harumas/UGizmo.git?path=src/UGizmo/Assets/UGizmo\"\n    }\n}\n```\n\n### Samples\nIt can be drawn by using the `UGizmos` class.  \nIn the standard `Gizmos` class, the matrix is specified using `Gizmos.matrix`, but in UGizmo, the position, rotation, and scale information is passed as method arguments.\nAlso, the color should not be specified using `Gizmos.color`, but directly passing the Color structure as the method argument.\n\n```C#\nusing UnityEngine;\n\npublic class DrawCubeSample : MonoBehaviour\n{\n    private void OnDrawGizmos()\n    {\n        UGizmos.DrawCube(Vector3.zero, Quaternion.Euler(45f, 45f, 45f), Vector3.one, Color.red);\n    }\n}\n```\n\nOpen Package Manager \u003e UGizmo \u003e Samples to install samples for URP and HDRP.\n\n![image](https://github.com/harumas/UGizmo/assets/43531665/a321d8b5-0ef9-40a5-b24b-cd901af8f8f1)\n\n## Features\n\n### 3D Primitives\n| 名前 | 補足 |\n| --- | --- |\n| `DrawSphere()` | Draws a sphere. (double the number of vertices as standard) |\n| `DrawWireSphere()` | Draws a wireframe sphere. (double the number of vertices as standard) |\n| `DrawCube()` | Draws a cube. |\n| `DrawWireCube()` | Draws a wireframe cube. |\n| `DrawCapsule()` | Draws a capsule. |\n| `DrawWireCapsule()` | Draws a wireframe capsule. |\n| `DrawCylinder()` | Draws a cylinder. |\n| `DrawWireCylinder()` | Draws a wireframe cylinder. |\n| `DrawCone()` | Draws a cone. |\n| `DrawWireCone()` | Draws a wireframe cone. |\n| `DrawPlane()` | Draws a plane. |\n| `DrawWirePlane()` | Draws a wireframe plane. |\n\n### 2D Primitives\n| 名前 | 補足 |\n| --- | --- |\n| `DrawCircle2D()` | Draws a circle. |\n| `DrawWireCircle2D()` | Draws a wireframe circle. |\n| `DrawBox2D()` | Draws a box. |\n| `DrawWireBox2D()` | Draws a wireframe box. |\n| `DrawTriangle2D()` | Draws a triangle. |\n| `DrawWireTriangle2D()` | Draws a wireframe triangle. |\n| `DrawCapsule2D()` | Draws a capsule. |\n| `DrawWireCapsule2D()` | Draws a wireframe capsule. |\n\n### Utilites\n| 名前 | 補足 |\n| --- | --- |\n| `DrawPoint()` | Draws a point to the front. |\n| `DrawLine()` | Draws a line. |\n| `DrawLineList()` | Draws multiple lines between pairs of points. |\n| `DrawLineStrip()` | Draws a line between each point within the specified span. |\n| `DrawRay()` | Draws a line from start (starting point) to start + dir (starting point + direction) |\n| `DrawFrustum()` | Draws the frustum of the camera. |\n| `DrawDistance()` | Displays the distance from a to b. Distance is not displayed at runtime. |\n| `DrawMeasure()` | Draws lines separated by regular intervals |\n| `DrawArrow()` | Draws a 3D arrow. |\n| `DrawArrow2d()` | Draws a 2D arrow. |\n| `DrawFacingArrow2d()` | Draws a 2D arrow. Always face the camera. |\n| `DrawWireArrow()` | Draws a 2D arrow with a wire body. |\n| `DrawFacingWireArrow()` | Draws a 2D arrow with a wire body. Always face the camera. |\n\n### 3D Physics\n| 名前 | 補足 |\n| --- | --- |\n| `Raycast()` | Performs a raycast and draws the result. |\n| `DrawRaycast()` | Draw the result of the raycast by passing a RaycastHit structure. |\n| `Linecast()` | Performs a line cast and draws the result. |\n| `DrawLinecast()` | Pass a RaycastHit structure to draw the result of the line cast. |\n| `SphereCast()` | Performs a sphere cast and draws the result. |\n| `DrawSphereCast()` | Pass a RaycastHit structure to draw the result of the sphere cast. |\n| `BoxCast()` | Performs a box cast and draws the result. |\n| `DrawBoxCast()` | Pass a RaycastHit structure to draw the result of the box cast. |\n| `CapsuleCast()` | Performs a capsule cast and draws the result. |\n| `DrawCapsuleCast()` | Pass a RaycastHit structure to draw the result of the capsule cast. |\n\n### 2D Physics\n| 名前 | 補足 |\n| --- | --- |\n| `Raycast2D()` | Performs a 2D raycast and draws the result. |\n| `DrawRaycast2D()` | Pass a RaycastHit structure to draw the result of the raycast. |\n| `Linecast2D()` | Performs a 2D linecast and draws the result. |\n| `DrawLinecast2D()` | Pass a RaycastHit structure to draw the result of the line cast. |\n| `SphereCast2D()` | Performs a 2D sphere cast and draws the result. |\n| `DrawSphereCast2D()` | Pass a RaycastHit structure to draw the result of the sphere cast. |\n| `BoxCast2D()` | Performs a 2D box cast and draws the result. |\n| `DrawBoxCast2D()` | Pass a RaycastHit structure to draw the result of the box cast. |\n| `CapsuleCast2D()` | Performs a 2D capsule cast and draws the result. |\n| `DrawCapsuleCast2D()` | Pass a RaycastHit structure to draw the result of the capsule cast. |\n\n## License\nThis library is released under the MIT License. \n[MIT License](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharumas%2FUGizmo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharumas%2FUGizmo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharumas%2FUGizmo/lists"}