Why is my Debug.Log not working

Hi Tanay,

Welcome to our community! :slight_smile:

What do you mean by “not working”? What did you expect to happen? What happened instead?

Is your script attached to a game object in the Hierarchy in Unity? Are the messages enabled in the Unity console? Did you press the Play button?

First of all, they are not getting color coded…
Second, they don’t actually print anything in the console, all they do is throw some errors.

Atm, I am working on the obstacle game…
You can observe the code at the right and the console at the bottom…
It is supposed to print the instructions, but it’s not working

The weird thing is that the - “Debug.Log()” seems to be the only thing not working in the code…

There seem to be messages in your console but the message button is disabled. See here:
image

Click the button to enable the messages.

Did this help you fix the issue?


See also:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms