How can i disable logging NavMeshSurface.BuildNavMesh() ?

Hello.

I am currently working on a dungeon generator for a game i’m working on.
Everything is working fine, however, when the generator builds the NavMesh for enemies to walk on, the Console gets completely flooded with messages.

Is there any way i could disable logging for NavMeshSurface.BuildNavMesh() ?

1 Like

2 Answers

2

Just in case anyone else is looking for an answer to this, as I was:

Add this line before your call to NavMeshSurface.BuildNavMesh().

NavMeshSurface.hideEditorLogs = true;

Seems this does not work anymore for Unity 6.0 and Ai Navigation 2.0.7.
Is there a newer solution for this?