Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [9/21]

static void Debug.Log ( [CanBeNull] string  message,
[NotNull] Expression< Action >  methodContext 

Logs a message to the Console along with method signature on the second line to provide additional context.

If the method belongs to a UnityEngine.Object context information will be automatically added to the message.

public void DestroyIfNotNull(Object target)
if(target == null)
Debug.Log("Destroying target.", ()=>Destroy(target));
static void Log([CanBeNull]object message)
Logs a message to the Console.
Definition: Debug.cs:168
Extended version of the built-in Debug class with additional methods to ease debugging while developi...
Definition: Debug.cs:34
messageMessage to display.
methodContextExpression pointing to a method to which the message relates.