Exemplo n.º 1
0
 /// <summary>
 /// Log an object relevent formatted error message to the unity console
 /// </summary>
 /// <param name="obj">The object that will be used to generate the message</param>
 /// <param name="msg">The message that is to be appended to the debug information</param>
 public static void LogError(this UnityEngine.Object obj, string msg)
 {
     Debug.LogError(obj.GetFormattedLog(msg), obj);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Log an object relevent formatted error message to the unity console
 /// </summary>
 /// <param name="obj">The object that will be used to generate the message</param>
 /// <param name="format">A string defining the format that the message will be created with</param>
 /// <param name="values">The values that will be substituated into the format string. See <see cref="string.Format(string, object[])"/> for specifics</param>
 public static void LogError(this UnityEngine.Object obj, string format, params object[] values)
 {
     Debug.LogError(obj.GetFormattedLog(format, values), obj);
 }