- Home /
Spam at Log console
I have GameObject called Player, wich is controled by user sometimes, and other times is controled by NavMeshAgent. this Player have a child called Ship. When the NavMesh controls the Player i need the ship to be always loking at 0,0,0 rotation, so have this line of code:
Ship.transform.localRotation = Quaternion.LookRotation(Vector3.zero);
In Play mode, whan this line is executed (is inside an Update) the console starts to spam this message... Is not a problem for the game, it works perfect, but is so annoying and i can not easy see other Debug.Log messages that i need to check...
What can i do? some other function? Disable Debug.Log?
I checked this post, but don't helps me...
Thaanks!
Best answer will be upvoted and marked as good. :D
You can also hit collapse to merge all the errors, and it'll only show unique.
Answer by hexagonius · Apr 03, 2018 at 06:37 PM
Assign Quaternion.Identity to your localRotation. but that's actually just a workaround. you shouldn't be needing to set the rotation every frame again, something must be rotating it which it shouldn't.
It works, thanks a lot. I'm little confused with rotations.. XD :D
Answer by meat5000 · Apr 03, 2018 at 09:19 PM
Just tell the Console to be less verbose. The editor should be able to differenciate between types of Logged message, I think its just a case of finding the correct option. Perhaps you can find one that removes those messages but keeps Debug.Log. Also, clicking Collapse would make it all disappear to one line.
Your answer
Follow this Question
Related Questions
Error log with line number but without column number. How to solve it? 0 Answers
I changed the name of some scripts and now I get a warning message but scripts run fine 1 Answer
onClick.AddListener For Button, Spams Console 0 Answers
How to redirect System.Console.Write from dll to Debug.Log 1 Answer