Debug.Log Extensions
Documentation (1.1.9)

◆ AssertWarning() [2/2]

static void Debug.AssertWarning ( bool  condition,
object  message,
Object  context = null 

Logs a warning 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.
messagestring or object to be converted to string representation for display.
contextObject to which the assertion applies.