Assert a condition and logs a formatted error message to the Flax console on failure. Condition you expect to be true. A composite format string. Format arguments.
(bool condition, string format, params object[] args)
| 99 | /// <param name="format">A composite format string.</param> |
| 100 | /// <param name="args">Format arguments.</param> |
| 101 | [Conditional("FLAX_ASSERTIONS")] |
| 102 | public static void AssertFormat(bool condition, string format, params object[] args) |
| 103 | { |
| 104 | if (!condition) |
| 105 | Logger.LogFormat(LogType.Error, format, args); |
| 106 | } |
| 107 | |
| 108 | /// <summary> |
| 109 | /// Assert a condition and logs a formatted error message to the Flax console on failure. |