Failed to create agent because there is no valid NavMesh / it is not close enough to the NavMesh

In Player.log on both Windows and Mac OS:

In some scenes this appears multiple times:

Failed to create agent because there is no valid NavMesh

Then this can appear multiple times:

Failed to create agent because it is not close enough to the NavMesh

I’m having no issues with the AI though. Also in the editor there are no warnings at all. Is there a way to show the warning in the editor so that I don’t need to run the build?

I’m trying to stop Player.log from having a lot of these warnings. The warnings seem to happen before Awake is run in my scripts.

The problem occurs when you:
Activate/Spawn a NavAgent script when the object the NavAgent is attached to is not close enough to a navigation mesh or the navigation mesh isn’t fully baked yet.

To solve the problem:
Spawn your object the NavAgent inactive, make sure your nav mesh is baked and your object is positioned correctly on the navigation mesh. Then activate your NavAgent script.

If you don’t do it this way, teleportation of the object with a NavAgent attached might happen and it will also write out the errors you currently have in your log.