Hi! I wondering if I can change the behaviour of the unit (i.e., speed, animation etc.) depending on the navigation layer? I could put triggers on the layers borders, but maybe, there is any better way?
Try calling SamplePathPosition, and look in the NavMeshHit structure it fills out for you to see which layers the agent is currently on or about to enter.