|
Debug.Log Extensions
Documentation (1.1.9)
|
|
static |
Logs an error message to the Console consisting of the name and value of one or more class members separated by a separator character.
public IEnumerator PlaySound(float delay, AudioId audioId) { Debug.LogError(()=>delay, ()=>audioId);
yield return new WaitForSeconds(delay);
audioController.Play(audioId); }
With shorter messages a comma will be used to separate elements in the list, and with longer message a line break will be used.
| classMembers | Expressions pointing to class members whose names and values will be included in the message. |