Faster Debug Log: Dump()
Debug.Log
is an eventuality...
Every Unity3d project I tackle needs one or two temporary Debug.Log( problematicObject )
statements to calm my nerves. As a fan of brevity and Fluent Interface, I bring this extension method with me everywhere I code:
using UnityEngine;
public static class DebugExtensions
{
public static void Dump(this object me)
{
Debug.Log(me);
}
}
Now all it takes to peer into your elusive object is a simple problematicObject.Dump()
.
Written by Brandon Catcho
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#C#
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#