Creating Pathfinding via using NavMesh in Unity3D

Hey, first of all I don’t even know if this is the right place to post this, but I couldn’t figure out where else on the Forum to post this, so if there is a better place to ask for advice, please redirect me to it.

So I have been trying to create a simple Pathfinding system with NavAgents and I can’t seem to find any help or info on how to create different Agents for what terrain they are allowed to pass. i.G. having an Island and 3 unit types Naval/Ground/Air in a top down 2D game. I did not chose 2d since creating a valid pathfinding there seemed rather challangening. So my question is: Are there any better options than NavMesh to create a Pathfinding that locks out different types of units out of different zones, or where can I find how exactly it works with NavMeshes.
Thanks in advance for your replies!

It is covered here:
https://docs.unity3d.com/Manual/nav-AreasAndCosts.html

Area Masks.

Thank you very much