[フレーム]
Last Updated: February 25, 2016
·
450
· catchco

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().

AltStyle によって変換されたページ (->オリジナル) /