Debug.Log Extensions
Documentation (1.1.9)

◆ LogWarning() [8/16]

static void Debug.LogWarning ( string  prefix,
object  arg,
params object[]  args 
)
static

Logs a warning message to the Console consisting of a prefix text string followed by the names and values of classMembers zero or more class members.

A comma will be used for the separator character with shorter messages and a line break with longer messages.

public void TestLogWarning123()
{
Debug.LogWarning("Test: ", 1, 2, 3);
}
static void LogWarning([CanBeNull]object message)
Logs a warning message to the Console.
Definition: Debug.cs:1728
Extended version of the built-in Debug class with additional methods to ease debugging while developi...
Definition: Debug.cs:34
Parameters
prefixPrefix text for the message.
argFirst listed element after the prefix.
argsAdditional listed elements after the prefix.