MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Assert

Method Assert

Source/Engine/Engine/Debug.cs:25–31  ·  view source on GitHub ↗

Assert a condition and logs a formatted error message to the Flax console on failure. Condition you expect to be true.

(bool condition)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

LogMethod · 0.45

Tested by

no test coverage detected