Debug.Log Extensions
Documentation (1.1.9)

◆ LogIf() [2/3]

static void Sisus.Debugging.Dev.LogIf ( bool  condition,
int  channel,
string  message,
Object  context = null 
)
static

If condition is true logs to the Console on the given channel a message .

If condition is false does nothing.

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

Parameters
conditionCondition that must be true for logging to take place.
channelThe channel to which the message belongs.
messageMessage to display.
contextObject to which the message applies.