Log.Warning

Static Method in Log

Declaration

public static void Warning(object message)

Description

Logs a warning message to the Unity console.

Parameters

messageThe message to log.

Overload

Declaration

public static void Warning(object message, string prefix)

Description

Logs a warning message to the Unity console with a custom prefix.

Parameters

messageThe message to log.
prefixThe prefix of the message.

Overload

Declaration

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

Description

Logs a warning message to the Unity console under a given context.

Parameters

messageThe message to log.
contextThe context of the message.

Overload

Declaration

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

Description

Logs a warning 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 Warning(params object[] messages)

Description

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

Parameters

messagesThe messages to log.