Decorate console log messages | Debug.Log | C# | Unity Game Engine


MouseClickCounter.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MouseClickCounter : MonoBehaviour
{
    int clickCount = 0;

    void Update()
    {
        if(Input.GetMouseButtonDown(0))
        {
            Debug.Log($"<i>click</i> <b>count</b> <size=20>=</size> <color=cyan>{++clickCount}</color>");
        }
    }
}