Search Unity

Update NavMeshArea based on terrain height

Discussion in 'Navigation' started by aFeesh, Dec 10, 2019.

  1. aFeesh

    aFeesh

    Joined:
    Feb 12, 2015
    Posts:
    35
    I'm looking for a way to alter the NavMeshArea of different terrain heights on my NavMesh.

    I.e if I have a building I'd like:
    Floor 1 - marked as NavMeshArea 1
    Floor 2 - marked as NavMeshArea 2

    I understand I can use a NavMeshModifierVolume but my terrain is procedurally generated and quite hilly. So is there an easier way to change the NavMeshArea based on the Y value of each sample on a NavMesh?