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

Method Fail

Source/Engine/Debug/Assert.cs:228–237  ·  view source on GitHub ↗
(string message = "", string userMessage = "")

Source from the content-addressed store, hash-verified

226 }
227
228 public static void Fail(string message = "", string userMessage = "")
229 {
230 if (RaiseExceptions)
231 throw new AssertionException(message, userMessage);
232 if (message == null)
233 message = "Assertion has failed\n";
234 if (userMessage != null)
235 message = string.Concat(userMessage, '\n', message);
236 Debug.LogAssertion(message);
237 }
238
239 /// <summary>
240 /// Asserts that the condition is false.

Calls 1

LogAssertionMethod · 0.80