Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

Debug.LogAssertion

public static void LogAssertion(object message);
public static void LogAssertion(object message, Object context);

Parameters

message String or object to be converted to string representation for display.
context Object to which the message applies.

Description

A variant of Debug.Log that logs an assertion message to the console.

Message of a type of LogType.Assert is logged.