|
Debug.Log Extensions
Documentation (1.1.9)
|
|
static |
Logs an error message to the Console if condition is not true and returns true if condition was false or false if it was not.
This can be useful for checking that the arguments passed to a function are valid and if not returning early with an error.
An error is only logged the first time during a session that the condition evaluates to false to avoid flooding the log file.
In release builds an error will only be logged if the UNITY_ASSERTIONS symbol is defined.
| condition | Condition you expect to be true. |
| methodContext | Expression pointing to a method to which the guard applies. |