UnityEssentials
Small but useful tools and features for Unity
DebugExtensions.cs
Go to the documentation of this file.
1 using System.Collections.Generic;
2 
3 namespace UnityEngine
4 {
9  public static class DebugExtensions
10  {
17  public static void LogEnumerable<T>(this Debug db, IEnumerable<T> enumerableToDebug, string separator = ", ",
18  string message = "", Object context = null)
19  {
20  enumerableToDebug.DebugLog(separator, message, context);
21  }
22  }
23 }
Extensions for Debug
static void LogEnumerable< T >(this Debug db, IEnumerable< T > enumerableToDebug, string separator=", ", string message="", Object context=null)
Creates a 'Debug.Log' message with all the contents in the enumerable.