UnityEssentials
Small but useful tools and features for Unity
DebugEssentials.cs
Go to the documentation of this file.
1 using System.Collections.Generic;
2 
3 namespace UnityEngine
4 {
8  public class DebugEssentials : Debug
9  {
10 
17  public static void LogEnumerable<T>(IEnumerable<T> enumerableToDebug, string separator = ", ", string message = "", Object context = null)
18  {
19  enumerableToDebug.DebugLog(separator, message, context);
20  }
21 
28  public static void LogWarningEnumerable<T>(IEnumerable<T> enumerableToDebug, string separator = ", ", string message = "", Object context = null)
29  {
30  enumerableToDebug.DebugLogWarning(separator, message, context);
31  }
32 
39  public static void LogErrorEnumerable<T>(IEnumerable<T> enumerableToDebug, string separator = ", ", string message = "", Object context = null)
40  {
41  enumerableToDebug.DebugLogError(separator, message, context);
42  }
43  }
44 
45 }
Class containing additional methods to ease debugging while developing a game.
static void LogErrorEnumerable< T >(IEnumerable< T > enumerableToDebug, string separator=", ", string message="", Object context=null)
Creates a 'Debug.LogError' message with all the contents in the enumerable.
static void LogEnumerable< T >(IEnumerable< T > enumerableToDebug, string separator=", ", string message="", Object context=null)
Creates a 'Debug.Log' message with all the contents in the enumerable.
static void LogWarningEnumerable< T >(IEnumerable< T > enumerableToDebug, string separator=", ", string message="", Object context=null)
Creates a 'Debug.LogWarning' message with all the contents in the enumerable.