CSDebugDraw2D 1.0.2
dotnet add package CSDebugDraw2D --version 1.0.2
NuGet\Install-Package CSDebugDraw2D -Version 1.0.2
<PackageReference Include="CSDebugDraw2D" Version="1.0.2" />
<PackageVersion Include="CSDebugDraw2D" Version="1.0.2" />
<PackageReference Include="CSDebugDraw2D" />
paket add CSDebugDraw2D --version 1.0.2
#r "nuget: CSDebugDraw2D, 1.0.2"
#:package CSDebugDraw2D@1.0.2
#addin nuget:?package=CSDebugDraw2D&version=1.0.2
#tool nuget:?package=CSDebugDraw2D&version=1.0.2
https://www.nuget.org/packages/CSDebugDraw2D
DebugDraw2D – C# Port of AlmostBearded/GodotDebugDraw
A C# conversion of the original GodotDebugDraw GD scripts, providing functionality for debugging through visual shape rendering.
Installation
- Copy the
csdebugdraw2dfolder into youraddonsdirectory (create one if necessary). - Ensure your Godot Project has a
.slnfile and that scripts have been built at least once.- Add any C# script to generate a solution file.
- Build the project via
dotnet buildin the terminal or using the Godot Editor.
- Enable the addon in Project → Plugins.
Original Documentation
Autoload Setup
To ensure DebugDraw2D is accessible globally, you need to add it as an Autoload script.
Steps:
- Open Project → Project Settings.
- Navigate to the Autoload tab.
- Add the
DebugDraw2Dscript by locating its path and naming itDebugDraw2D.
Your settings should resemble this:

Usage
Since DebugDraw2D is an Autoload, it is available globally in your project.
Available Methods:
DebugDraw2D.line(...)DebugDraw2D.rect(...)DebugDraw2D.cube(...)DebugDraw2D.arrow(...)DebugDraw2D.circle(...)DebugDraw2D.circle_arc(...)
Features:
- Draw in any color
- Custom line width
- Filled shapes using
DebugDraw2D...._filled() - Render for a single frame or a set duration
Supported Primitives:
- Lines
- Arrows
- Rectangles
- Cubes
- Circles
- Circle Arcs / Pies
Polygons
Explore the source code for additional details—it's lightweight and easy to navigate.
Extensions & Contributions
Thank you to AlmostBearded for the original GD Script Library.
Need a new feature? Send me a request, and I'll consider extending the addon!
Alternatively, feel free to enhance the source code yourself and submit a pull request—I'll review and merge useful additions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- GodotSharp (>= 4.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.2 | 183 | 7/15/2025 |