Legacy Documentation: Version 5.1
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 function Assert(condition: bool): void;
public static function Assert(condition: bool, message: string): void;
public static function Assert(condition: bool, format: string, params args: object[]): void;

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.