AI not working when launch game

When I press launch game in the editor in my main menu level and click on open the game level, the level will load normally, but my AI will stop working and the nav mesh will also stop working. How could I fix this?

yes, it worked. Thank you.

Try going into Edit->Project Settings->Navigation Mesh and setting the Runtime Generation to Dynamic and checking the Force Rebuild on Load option.

Let me know if that helps.

If not, try typing the show navigation command in the console in your launched game and see if you are able to see the Nav Mesh.

Holy crap… thank you so much!!!

Thank you I am on 25.3 and had same issue this worked for me too