{"id":19186132,"url":"https://github.com/pschraut/unitydbgdraw","last_synced_at":"2025-10-07T23:02:18.473Z","repository":{"id":110112966,"uuid":"228655062","full_name":"pschraut/UnityDbgDraw","owner":"pschraut","description":"DbgDraw is an API that provides the ability to render various 2D and 3D shapes for visual debugging purposes.","archived":false,"fork":false,"pushed_at":"2024-08-12T17:30:40.000Z","size":76,"stargazers_count":92,"open_issues_count":2,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-06T10:11:09.493Z","etag":null,"topics":["debug","debugging","draw","unity","unity3d","visualization"],"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/pschraut.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-12-17T16:17:23.000Z","updated_at":"2025-01-26T18:14:16.000Z","dependencies_parsed_at":"2025-01-08T22:21:47.186Z","dependency_job_id":"872d574d-502e-4d60-98dc-8ef4bb17f507","html_url":"https://github.com/pschraut/UnityDbgDraw","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2857142857142857,"last_synced_commit":"ca91b722aa56d937e53d664886771ede5122c8b2"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschraut%2FUnityDbgDraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschraut%2FUnityDbgDraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschraut%2FUnityDbgDraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschraut%2FUnityDbgDraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschraut","download_url":"https://codeload.github.com/pschraut/UnityDbgDraw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238241922,"owners_count":19439778,"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","debugging","draw","unity","unity3d","visualization"],"created_at":"2024-11-09T11:13:30.249Z","updated_at":"2025-10-07T23:02:13.436Z","avatar_url":"https://github.com/pschraut.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debug Draw API for Unity\n\n```DbgDraw``` is an API that provides the ability to render various 2D and 3D shapes for visual debugging purposes. It's similar to Unity's [Gizmos](https://docs.unity3d.com/ScriptReference/Gizmos.html) and [Handles](https://docs.unity3d.com/ScriptReference/Handles.html) API's.\n\nUnity provides a rather limited set of debug draw functions in the Debug class, such as [Debug.DrawLine](https://docs.unity3d.com/ScriptReference/Debug.DrawLine.html) for example.\n\nUnlike Unity's Gizmo, which requires rendering code to be located in a [OnDrawGizmos](https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnDrawGizmos.html) method, you can issue DbgDraw calls from anywhere in your code. Rather than issuing these render calls immediately, DbgDraw collects those calls and defers the actual rendering to a later time. This allows to call DbgDraw from any method, be it Start(), Update() etc.\n\nDbgDraw provides functionality to render the following shapes:\n* Arc\n* Cube\n* Disc\n* Line, Lines and PolyLine\n* Matrix\n* Plane\n* Pyramid\n* Quad\n* Ray\n* Sphere\n* Tube\n\nMost of these shapes can be rendered solid and in wireframe.\n\n\n# Example\n\n```csharp\nusing Oddworm.Framework;\n\n// Draw a wireframe cube for a single frame\nDbgDraw.WireCube(position, rotation, scale, color); \n\n// Draw a solid cube for ten seconds\nDbgDraw.Cube(position, rotation, scale, color, 10);\n```\nPlease import the \"DbgDraw Examples\" file, which part of this package, for more examples.\n\n\n# Limitations\n\n* DbgDraw works with Unity 2020.3 and later versions.\n* DbgDraw works in the Unity editor and [development mode](https://docs.unity3d.com/Manual/BuildSettings.html).\n* DbgDraw works in play mode only.\n* DbgDraw has been created for visual debugging purposes, not as a fast general purpose shape rendering API.\n\n\n# Installation\n\nOpen in Unity Window \u003e Package Manager, choose \"Add package from git URL\" and insert one of the Package URL's you can find below.\n\n## Package URL's\n\nI recommend to right-click the URL below and choose \"Copy Link\" rather than selecting the text and copying it, because sometimes it copies a space at the end and the Unity Package Manager can't handle it and spits out an error when you try to add the package.\n\nPlease see the ```CHANGELOG.md``` file to see what's changed in each version.\n\n| Version  |     Link      |\n|----------|:-------------:|\n| 1.2.0 | https://github.com/pschraut/UnityDbgDraw.git#1.2.0 |\n| 1.1.0 | https://github.com/pschraut/UnityDbgDraw.git#1.1.0 |\n| 1.0.0 | https://github.com/pschraut/UnityDbgDraw.git#1.0.0 |\n\n\n\n# FAQ\n\n### It's not working in the editor\n\nDbgDraw works in the editor only, if you tick the ```Development Build``` checkbox in the Build Settings window (File \u003e Build Settings).\n\n### It's not working in a build\n\nDbgDraw works in a build only, if you tick the ```Development Build``` checkbox in the Build Settings window (File \u003e Build Settings).\n\n### Remove DbgDraw calls from release builds\n\nIf you untick the ```Development Build``` checkbox in the Build Settings window (File \u003e Build Settings), calls to DbgDraw are being removed by the compiler.\n\n### \"Hidden/DbgDraw-Shaded\" in Always Included Shaders\n\nThe package automatically adds the ```Hidden/DbgDraw-Shaded``` shader to the 'Always Included Shaders' list in the Player settings when you create a build. This is required to make the DbgDraw package work in a build. It's a very simple shader that does add a trivial amount of size to the build.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschraut%2Funitydbgdraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschraut%2Funitydbgdraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschraut%2Funitydbgdraw/lists"}