Why is my console output with Debug.Log only shown once in Unity?

Oh boy… I’m just writing this short post to save others from this stupid bug hunt that I’ve been doing for the last 45 minutes.

I was wondering why my simple code phrase “Debug.Log(Input.GetMouseButtonDown(0));” printed the message to the console only once every application start. I double checked the colliders, restarted Unity several times and restarted VSCode as well. Nothing. No errors, no warnings…

Then it struck me when I saw these little ugly bubbles with numbers at the right end of every console output…

Solution: Better check if you’ve disabled the “Collapse” option before collapse yourself…

Console output

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.