Near to the end of the course with a little problem: The navmesh is not working anymore since we implemented the UI in le...

Near to the end of the course with a little problem: The navmesh is not working anymore since we implemented the UI in lesson "Animating Turret Buttons". In the end of the lesson you test the UI, and your navmesh isnt working either. The ground enemys arn't moving (at the end of the Lesson at 11:55). All i found out is if i turn off the visibility checkbox for the HUD-Group in the inspector pannel, then the navmesh is working and the enemys are moving. If visibility for HUD is on, the enemy is not moving, if it is turned off, the enemy is moving. In the later Lesson "Spawning Emeny Waves" your game is working properly. I think you fixed this issue off screen. I've just finished the lesson Spawning Emeny Waves but i could'nt fix this till now. I'm not sure if it's a problem of the UI (Canvas) or the navmesh. Any advice to solve this?
  • Tobias Schmid(benkroft) replied
    I found it out. The problem ist the name of the UI Element. Don't name the UI "Portal" because the GroundEnemys script is searching for a gameobject called "Portal". And if we have the mesh called Portal and the UI is called Portal, the script get a Problem because there are multiple objects with the same name i think. Or it's assigning the UI element as destination for the navmash. So just remane the the UI to "Portaltext" or something like that.
  • Jonathan Gonzalez(jgonzalez) replied

    The finished game actually has the same UI element name throughout. The project files are the same as well. After testing this out, it seems having a rect transform object can effect this, but the element within the HUD seems to be ignored, least from what I've seen. Nonetheless I would agree we shouldn’t use the same names for game objects regardless of their type so thanks for pointing that out.