Log.Error

Static Method in Log

Declaration

public static void Error(object message)

Description

Logs an error message to the Unity console.

Parameters

messageThe message to log.

Overload

Declaration

public static void Error(object message, string prefix)

Description

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

Parameters

messageThe message to log.
prefixThe prefix of the message.

Overload

Declaration

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

Description

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

Parameters

messageThe message to log.
contextThe context of the message.

Overload

Declaration

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

Description

Logs an error 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 Error(params object[] messages)

Description

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

Parameters

messagesThe messages to log.