Debug.Log Extensions
Documentation (1.1.9)

◆ LogIf() [2/3]

static void Debug.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.

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.