Assert a condition and logs a formatted error message to the Flax console on failure. Condition you expect to be true.
(bool condition)
| 23 | /// </summary> |
| 24 | /// <param name="condition">Condition you expect to be true.</param> |
| 25 | [Conditional("FLAX_ASSERTIONS")] |
| 26 | [Obsolete("Please use verbose logging for all exceptions")] |
| 27 | public static void Assert(bool condition) |
| 28 | { |
| 29 | if (!condition) |
| 30 | Logger.Log(LogType.Error, "Assertion failed"); |
| 31 | } |
| 32 | |
| 33 | /// <summary> |
| 34 | /// Assert a condition and logs a formatted error message to the Flax console on failure. |