Hello! I’m new to the platform and coding in general. I have my script all set up and it works fine but I’m just having problems with the console in unity printing my print commands twice. Any help would be appreciated!
Hello! I’m new to the platform and coding in general. I have my script all set up and it works fine but I’m just having problems with the console in unity printing my print commands twice. Any help would be appreciated!
Hi LJ,
Welcome to the community.
Three things you can check;
For the first, just run your game and note whether the console actually clears or not. If it does, great, that suggests one of the other two issues. If it doesn’t, try enabling Clear on Play;
Assuming the messages are still duplicated;
Within the Hierarchy on the left-hand side (typically), you will see all of the GameObjects which are within the current Scene;
Select each GameObject in turn and then view the Inspector on the right-hand side (typically) and look to see if the same script component is listed more than once.
Assuming the script isn’t attached to the same GameObject more than once, repeat the step above, but this time see if the script is attached to more than one GameObject.
Let me know what you find.