Debug.Log Extensions
Documentation (1.1.9)

◆ Assert() [3/11]

static void Debug.Assert ( bool  condition,
Object  context = null 

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.

conditionCondition you expect to be true.
contextObject to which the assertion applies.