Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [4/21]

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

Logs a message to the Console on the given channels.

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

yield return new WaitForSeconds(delay);

audioController.Play(audioId); }

Parameters
channel1The first channel to which the message belongs.
channel2The second 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.