Code Monkey home page Code Monkey logo

dev-debug's Introduction

DevDebug

A wrapper class for Unity Debug, this will contain most of the methods from Debug for logging purposes. It uses the Conditional attribute to only log when 'DEV_BUILD' constraint is defined.

NOTE: Asserts must have the 'UNITY_ASSERTS' constraint defined to execute.

How-To:

Installation

Installing DevDebug can be done in two different methods:

  1. Installing DevDebug as a Unity Package. This method will allow you to use the DevDebug class directly but won't allow you to click your outputs from the Unity Console and to be directed to the origin of that output.

  2. (Recommended Method) Installing DevDebug as a Unity Managed Plugin (DLL). This method will use the DevDebug class still but instead allow you to click your outputs from the Unity Console and be directed to the origin of your outputs.

Usage

The Unity package installation will work outside the box as a package.

The Unity Managed Plugin (DLL) requires some extra steps which will be described below:

If you auto reference the DLL you will be set to just use DevDebug; however, if your like me and you like to manually reference the DLL from each assembly that will use it you will want to manually reference the DLL.

To auto reference the DLL you need to go in Unity and place the DLL somewhere in your Assets and then select the DLL and within the Inspector make sure Auto Reference is ticked.

To manually reference the DLL you need to instead create a folder named DevDebug and insert the DLL into that folder and inspect the DLL in Unity's Inspector and ensure that Auto Reference is not ticked. You will also need the assembly definition file included in the release version placing it inside the DevDebug folder. All files needed for manually referencing the DLL can be found in the release version.

The latest release can be found here

Changelog

Changelog

License

License: AGPL v3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.