Debug.Log Extensions
Documentation (1.1.9)

◆ LogWarning() [10/16]

static void Debug.LogWarning ( [NotNull] params Expression< Func< object >>[]  classMembers)

Logs a warning message to the Console consisting of the name and value of one or more class members separated by a separator character.

With shorter messages a comma will be used to separate elements in the list, and with longer message a line break will be used.

public IEnumerator PlaySound(float delay, AudioId audioId)
Debug.LogWarning(()=>delay, ()=>audioId);
yield return new WaitForSeconds(delay);
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
classMembersExpressions pointing to class members whose names and values will be included in the message.