I want the enemy to follow my character. Which method works properly with nav mesh agent?

I can make the enemy follow the character with the nav mesh agent, but when the enemy is nearby, it does not turn towards my character and this does not provide a realistic gaming experience. How do I make the enemy’s orientation focus on my character?

You probably only want to follow the player if there isn’t line-of-sight (LOS) to your player.

Once the enemy can see the player, suspend navigation and orient towards the player.

Raycasting can help you determine LOS.