Debug.Log Extensions
Documentation (1.1.9)

◆ LogError() [12/16]

static void Debug.LogError ( int  channel1,
int  channel2,
[NotNull] params Expression< Func< object >>[]  classMembers 

Logs an error message to the Console on the given channels and consisting of the name and value of classMembers zero or more class members separated by a separator character.

With shorter messages a comma will be used to separate elements in the list, and with longer message a line break will be used.

public IEnumerator PlaySound(float delay, AudioId audioId)
Debug.LogError(()=>delay, ()=>audioId);
yield return new WaitForSeconds(delay);
static void LogError([CanBeNull]string message)
Logs an error message to the Console.
Definition: Debug.cs:2527
Extended version of the built-in Debug class with additional methods to ease debugging while developi...
Definition: Debug.cs:34
channel1The first Channel to which the message belongs.
channel2The second Channel to which the message belongs.
classMembersExpressions pointing to class members whose names and values will be included in the message.