Cant access Navmesh by script

Hi!

I am having problems with accessing Navmesh from code.

The line I always used to use is for example:

private NavMesh, etc.

But for some reason that is impossible now. I ran the API once and it changed it to some along these lines:

private UnityEngine …Navmesh

but I cant figure out what it was and why it would even use this line of code to access it. Maybe it has something to do with the target platform that I have in mind.

A quick answer would be great since Ive been stuck on this for the last 2 hours, googling and just scratching my head.

Update… I just found it.

Its:

private UnityEngine.AI.Navmesh

Does anyone know why it has changed to this line of code over the more simple one?