Debug.Log Extensions
Documentation (1.1.9)

◆ LogIf() [1/3]

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

If condition is true logs a message to the console.

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.
messageMessage to display.
contextObject to which the message applies.