Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [21/21]

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

Logs the name and value of one or more class members to the Console separated by a separator character using the given channels.

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.Log(()=>delay, ()=>audioId);
yield return new WaitForSeconds(delay);
audioController.Play(audioId);
}
static void Log([CanBeNull]object message)
Logs a message to the Console.
Definition: Debug.cs:168
Extended version of the built-in Debug class with additional methods to ease debugging while developi...
Definition: Debug.cs:34
Parameters
channel1First channel to which the message belongs.
channel2Second channel to which the message belongs.
classMembersExpressions pointing to class members whose names and values will be included in the message.