Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Debug.Assert

Switch to Manual
public static void Assert(bool condition);
public static void Assert(bool condition, string message);
public static void Assert(bool condition, string format, params object[] args);

Parameters

condition Condition you expect to be true.
message String or object to be converted to string representation for display.
format Formatted string for display.
args Arguments for the formatted string.

Description

Assert the condition.

Message of a type of LogType.Assert is logged.