Debug.Log Extensions
Documentation (1.1.9)

◆ Assert() [2/11]

static void Debug.Assert ( bool  condition,
int  channel1,
int  channel2,
Object  context = null 
)
static

Logs an error message to the Console if condition is not true.

Calls to this method will be stripped from release builds unless the UNITY_ASSERTIONS symbol is defined.

Parameters
conditionCondition you expect to be true.
channel1The first channel to which the message belongs if logged.
channel2The second channel to which the message belongs if logged.
contextObject to which the assertion applies.