Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [8/10]

static void Sisus.Debugging.Dev.Log ( [NotNull] string  prefix,
[NotNull] params Expression< Func< object >>[]  classMembers 
)
static

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

Calls to this method will be fully stripped from release builds.

public IEnumerator PlaySound(float delay, AudioId audioId)
{
Dev.Log("[Audio] Playing delayed - ", ()=>delay, ()=>audioId);
yield return new WaitForSeconds(delay);
audioController.Play(soundId);
}
Parameters
prefixPrefix text for the message.
classMembersExpressions pointing to class members whose names and values will be included in the message.