Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [3/21]

static void Debug.Log ( int  channel,
[CanBeNull] object  message,
[CanBeNull] Object  context = null 
)
static

Logs a message to the Console on the given channel .

public IEnumerator PlaySound(float delay, AudioId audioId) { Debug.Log(Channel.Audio, "Playing {audioId} in {delay} seconds.", this);

yield return new WaitForSeconds(delay);

audioController.Play(audioId); }

Parameters
channelThe channel to which the message belongs.
messagestring or object to be converted to string representation for display.
contextObject to which the message applies.

If you pass a context argument that Object will be momentarily highlighted in the Hierarchy window when you click the log message in the Console.