Please tell me how this can be implemented. I have navmesh just resets the height to the level terrain. Maybe someone has ideas?
Do you want the flying navmesh to just be a flat plane at a constant height (blizzard RTS style), or do you want it to be a fixed height above ground?
I haven’t done this before, but if I were looking to use a NavMesh to solve this instead of another pathing algorithm I would probably create a NavMesh with no obstacles. Then I would create a separate NavMeshAgent that moves around the NavMesh in front of the Air Unit with a RayCast that finds the height as it moves around. I would then use this position to guide my Air Unit over obstacles effectively recreating the NavMesh path with the addition of height.
I haven’t tried it yet, so maybe there are problems with this method, but its certainly the first thing I would try.
NavMesh without obstacles makes no sense - you could just using a steering behavior to move the unit in a straight line to its destination.