Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [3/10]

static void Sisus.Debugging.Dev.Log ( int  channel,
[CanBeNull] string  message,
Object  context = null 
)
static

Logs a message to the console on the given channel .

Channels can be used to selectively suppress messages you don't care about at the moment.

Calls to this method will be fully stripped from release builds.

public IEnumerator PlaySound(float delay, AudioId audioId)
{
Dev.Log(Channel.Audio, "Playing {audioId} in {delay} seconds.", this);
yield return new WaitForSeconds(delay);
audioController.Play(audioId);
}
Defines a channel for a message logged to the Console.
Definition: Channel.cs:12
Parameters
channelThe channel to which the message belongs.
messageMessage to display.
contextObject to which the message applies.