Log.Assertion

Static Method in Log

Declaration

public static void Assertion(object message)

Description

Logs an assertion message to the Unity console.

Parameters

messageThe message to log.

Overload

Declaration

public static void Assertion(object message, string prefix)

Description

Logs an assertion message to the Unity console with a custom prefix.

Parameters

messageThe message to log.
prefixThe prefix of the message.

Overload

Declaration

public static void Assertion(object message, UnityEngine.Object context)

Description

Logs an assertion message to the Unity console under a given context.

Parameters

messageThe message to log.
contextThe context of the message.

Overload

Declaration

public static void Assertion(object message, string prefix, UnityEngine.Object context)

Description

Logs an assertion message to the Unity console with a custom prefix under a given context.

Parameters

messageThe message to log.
prefixThe prefix of the message.
contextThe context of the message.

Overload

Declaration

public static void Assertion(params object[] messages)

Description

Logs multiple assertion messages as a single message to the Unity console.

Parameters

messagesThe messages to log.