All Projects → pschraut → Unitydbgdraw

pschraut / Unitydbgdraw

Licence: mit
DbgDraw is an API that provides the ability to render various 2D and 3D shapes for visual debugging purposes.

Projects that are alternatives of or similar to Unitydbgdraw

deno-debug
Debugging utility for deno. Ported from https://npmjs.com/debug
Stars: ✭ 15 (-25%)
Mutual labels:  debugging, debug
Debugo
一个可能有点用的 iOS 调试工具~
Stars: ✭ 258 (+1190%)
Mutual labels:  debugging, debug
CrashLogger
A dll injected into process to dump stack when crashing.
Stars: ✭ 19 (-5%)
Mutual labels:  debugging, debug
XYDebugView
XYDebugView is debug tool to draw the all view's frame in device screen and show it by 2d/3d style like reveal did.
Stars: ✭ 101 (+405%)
Mutual labels:  draw, debug
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+18450%)
Mutual labels:  debugging, debug
kokkos-tools
Kokkos C++ Performance Portability Programming EcoSystem: Profiling and Debugging Tools
Stars: ✭ 52 (+160%)
Mutual labels:  debugging, debug
caddy-trace
Request Debugging Middleware Plugin for Caddy v2
Stars: ✭ 25 (+25%)
Mutual labels:  debugging, debug
windbgtree
A command tree based on commands and extensions for Windows Kernel Debugging.
Stars: ✭ 94 (+370%)
Mutual labels:  debugging, debug
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+18745%)
Mutual labels:  debugging, debug
Tensorwatch
Debugging, monitoring and visualization for Python Machine Learning and Data Science
Stars: ✭ 3,191 (+15855%)
Mutual labels:  debugging, debug
SmartDump
SmartDump - an exception and memory dump capture utility
Stars: ✭ 17 (-15%)
Mutual labels:  debugging, debug
Node In Debugging
《Node.js 调试指南》
Stars: ✭ 6,139 (+30595%)
Mutual labels:  debugging, debug
react-native-debug-console
A network and console debug component and modal for react native purely in JavaScript
Stars: ✭ 17 (-15%)
Mutual labels:  debugging, debug
docker-pudb
Debug Python code within a Docker container remotely from your terminal using pudb
Stars: ✭ 18 (-10%)
Mutual labels:  debugging, debug
debug
A small debugging library for C++
Stars: ✭ 30 (+50%)
Mutual labels:  debugging, debug
pydbg
Python implementation of the Rust `dbg` macro
Stars: ✭ 85 (+325%)
Mutual labels:  debugging, debug
clrprint
Print colorful output in the terminal, idle, cmd, and Windows PowerShell using the same functions.
Stars: ✭ 22 (+10%)
Mutual labels:  debugging, debug
axios-curlirize
axios plugin converting requests to cURL commands, saving and logging them.
Stars: ✭ 152 (+660%)
Mutual labels:  debugging, debug
Bistoury
Bistoury是去哪儿网的java应用生产问题诊断工具,提供了一站式的问题诊断方案
Stars: ✭ 3,198 (+15890%)
Mutual labels:  debugging, debug
Boxx
Tool-box for efficient build and debug in Python. Especially for Scientific Computing and Computer Vision.
Stars: ✭ 429 (+2045%)
Mutual labels:  debugging, debug

Debug Draw API for Unity

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 and Handles API's. Unity also provides a rather limited set of debug draw functions in the Debug class, such as Debug.DrawLine for example.

Unlike Unity's Gizmo, which requires Gizmos rendering code to be located in a OnDrawGizmos 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.

DbgDraw provides functionality to render the following shapes:

  • Arc
  • Cube
  • Disc
  • Line, Lines and PolyLine
  • Matrix
  • Plane
  • Pyramid
  • Quad
  • Ray
  • Sphere
  • Tube

All of these shapes can be rendered solid and in wireframe.

Example

using Oddworm.Framework;

// Draw a wireframe cube for a single frame
DbgDraw.WireCube(position, rotation, scale, color); 

// Draw a solid cube for ten seconds
DbgDraw.Cube(position, rotation, scale, color, 10);

Please import the "DbgDraw Examples" file, which part of this package, for more examples.

Limitations

  • DbgDraw works with Unity 2018.3 and later versions.
  • DbgDraw works in the Unity editor and development mode builds.
  • DbgDraw works in play mode only.
  • DbgDraw has been created for visual debugging purposes, not a fast general purpose shape rendering API.

Installation

As of Unity 2019.3, Unity supports to add packages from git through the Package Manager window. In Unity's Package Manager, choose "Add package from git URL" and insert one of the Package URL's you can find below.

In earlier Unity versions, you should be able to download the repository and copy it to your projects 'Assets' directory.

Package URL's

Version Link
1.0.0 https://github.com/pschraut/UnityDbgDraw.git#1.0.0

FAQ

It's not working in the editor

DbgDraw works in the editor only, if you tick the 'Development Build' checkbox in the Build Settings window (File > Build Settings).

It's not working in a build

DbgDraw works in a build only, if you tick the 'Development Build' checkbox in the Build Settings window (File > Build Settings).

Remove DbgDraw calls from release builds

If you untick the 'Development Build' checkbox in the Build Settings window (File > Build Settings), calls to DbgDraw are being removed by the compiler.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].