{"id":14961018,"url":"https://github.com/zenvin-dev/unityvisualdebugging","last_synced_at":"2025-09-05T19:33:30.491Z","repository":{"id":41353994,"uuid":"503115399","full_name":"zenvin-dev/UnityVisualDebugging","owner":"zenvin-dev","description":"Small package for drawing lines and shapes, as well as debugging variables during runtime.","archived":false,"fork":false,"pushed_at":"2023-10-22T15:32:47.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T13:54:40.275Z","etag":null,"topics":["debugging","unity","unity3d","upm-package"],"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/zenvin-dev.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":"2022-06-13T21:07:20.000Z","updated_at":"2024-01-21T12:41:43.000Z","dependencies_parsed_at":"2023-02-09T21:00:55.027Z","dependency_job_id":"5a02f915-20d9-4cab-90fd-c8a3a9b47da1","html_url":"https://github.com/zenvin-dev/UnityVisualDebugging","commit_stats":null,"previous_names":["zenvin-dev/unityvisualdebugging"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenvin-dev%2FUnityVisualDebugging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenvin-dev%2FUnityVisualDebugging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenvin-dev%2FUnityVisualDebugging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenvin-dev%2FUnityVisualDebugging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenvin-dev","download_url":"https://codeload.github.com/zenvin-dev/UnityVisualDebugging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246880477,"owners_count":20848867,"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":["debugging","unity","unity3d","upm-package"],"created_at":"2024-09-24T13:23:38.582Z","updated_at":"2025-04-02T19:33:27.682Z","avatar_url":"https://github.com/zenvin-dev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity Visual Debugging\nSmall package for drawing debug lines \u0026 shapes, as well as debugging variable values during runtime.\n\n---\n## Visual Debugger\nUses pooled [line renderers](https://docs.unity3d.com/ScriptReference/LineRenderer.html) for rendering wireframe shapes in a scene.\n\n### Usage\nJust like with [`UnityEngine.Debug`](https://docs.unity3d.com/ScriptReference/Debug.html) methods, simply call the desired method(s) of `Zenvin.VisualDebugging.VisualDebugger` once a frame for every shape you want to be drawn.\n\n### Draw methods list\n* `DrawCircle` - Draws a circle at a given position, a given rotation and a given number of vertices.\n* `DrawLine` - Draws a line between two points.\n* `DrawPath` - Draws a path between any number of points.\n* `DrawRay` - Draws a line starting at a given point, going in a given direction for a given length.\n* `DrawRectangle` - Draws a rectangle of a given size at a given position.\n* `DrawSphere` - Draws a wire sphere of a given size at a given position. The circles making up the sphere have 32 vertices each.\n\n\n## Value Debugger\nAllows the display of labelled values via [`OnGUI`](https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnGUI.html). \\\n[`Func\u003cstring\u003e`](https://learn.microsoft.com/en-us/dotnet/api/system.func-1?view=net-7.0) delegate methods are used to update displayed values in a specific interval. This defaults to once every 0.25 seconds, but may be set manually using `SetUpdateInterval(float)`\n\n### Usage\nTo display a value, simply call the `static` method `RegisterTarget(DebugTarget)` on `Zenvin.VisualDebugging.ValueDebugger`, passing it a valid target.\n```csharp\nZenvin.VisualDebugging.ValueDebugger.RegisterTarget(new DebugTarget(Foo, \"Some Value\"));    // assuming Foo is a method with return type string.\n```\nThe `RegisterTarget(DebugTarget)` method will return a numeric ID, which can be used to remove the value from display again using `RemoveTarget(int)`.\n\n\n## Gizmo Utility\nA collection of static methods to expand the functionalilty of Unity's `Gizmos` class.\n\n### DrawGizmos methods list\n* `DrawArrow` - Draws an arrow between two points, with a given normal, size, and color.\n* `DrawLine` - Draws a line between two points with a given color.\n* `DrawPointLines` - Draws 3 lines of variable length and color that intersect at a given point.\n* `DrawRay` - Draws a ray of a given color.\n* `DrawWireAngle` - Draws the outline of an angle at a given position, rotation and with a given radius and color.\n* `DrawWireAngle` - Draws a circle at a given position, rotation and with a given radius and color.\n* `DrawRect` - Draws a rect at a given position, with a given size, rotation and color.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenvin-dev%2Funityvisualdebugging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenvin-dev%2Funityvisualdebugging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenvin-dev%2Funityvisualdebugging/lists"}