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...
![alt text][1]
What can i do? some other function? Disable Debug.Log?
I checked [this post,][2] but don't helps me...
Thaanks!
Best answer will be upvoted and marked as good. :D
[1]: /storage/temp/114220-untitled.jpg
[2]: https://answers.unity.com/questions/1285264/look-rotation-viewing-vector-is-zero-spam-in-edito.html
↧