|
Debug.Log Extensions
Documentation (1.1.9)
|
|
static |
If condition is false logs to the Console an error message and returns true.
If condition is true returns false without logging anything.
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.
An error will only be logged in builds if the DEBUG symbol is defined, like for example in development builds.
| condition | Condition you expect to be true. |
| context | Object to which the assertion applies. |
true if condition was false; otherwise, false.