How to Clear console/log through scripts?

I cannot find how to clear the developer console/message log in unity through scripts? Any suggestions?

Hi Lucas,

I typed “unity clear console” into Google, and this is the first answer that popped up:
Debug.ClearDeveloperConsole();

Have you already tested it?

Yeah I already tested it and it didn’t seem to work. I am trying to clear messages that I printed but they aren’t being cleared. Thanks for trying to help though.

When/where did you call that message?

Privacy & Terms