Home          Developer Tools          Games          Services        Contact Us        Links                         Your Shopping Cart

 

Debug Console (ver 2.0)


[12-11-2010]Added full XmlDoc style comments to the source code for ease of use.
[06-10-2010]New logging features for version 2.0. See below for details.

   

Our Debug Console is an extended game mode console for Unity that provides command binding (set up a command to set the FOV of the main camera by typing fov 90 for example), logging, and also watch variables.

Command Binding:
Command Binding allows you to specify a string of text used to trigger a command when typed in the console, and also send additional arguments to the command.

For example, you could register a command for the string "fov". When someone types "fov 90" in the console, your registered command method will be run, and passed "90" as a parameter. You can then use this information to set the fov of the main camera, for example. Any number of arguments are supported, each seperated by a space.

Logging:
Standard Logging. Useful if you need to pass certain information to the console, debugging the behaviour of some code, etc. Since you can keep the Debug Console open while running your application, it makes debugging behaviours more convenient.

[New]You can log warnings and errors, which will be displayed as yellow or red text, respectively, and you can also log messages with custom colors.

[New]If you need to copy-paste your log messages, you can switch to "Copy Log" mode, and the output will automatically be wrapped with the message type tags (such as [error], or [warning])

Watch Vars:
Watch Vars are special objects we have included that can be used to replace basic types (float, bool, int, etc), and when used, the Debug Console's watch mode will show you the value of each watch var in realtime, using a name that you choose.

For example, if you are debugging some AI code, and you need to know in realtime how many enemies the AI thinks it can see at any given moment, use a WatchInt instead of a simple int for the enemy count, set it's name to "Visible Enemies" or something similar, and now the Debug Console will show you the realtime value of that int.

You can also write your own WatchVars for special uses, or for additional types very easily.

Note: This is just an example script, and is intended to provide a starting point for you to build the functionality you need. As such, we do not officially support this tool.
Current version does not support Unity iPhone by default, but you should be able to get it running without a lot of effort.


New Tool Released!

      

Keep in touch with all of your players without having to give away free kittens and beer.

Our Feed Reader allows you to quickly and easily bring live, rich content into your games and applications.

Click Here To Get It Now!