Search Unity

Navmesh modifier, changing area type using script

Discussion in 'Navigation' started by wiganda, May 23, 2021.

  1. wiganda

    wiganda

    Joined:
    Feb 24, 2018
    Posts:
    14
    Someone asked how to do this in another non-navigation thread.

    @Seehundy1995:

    yourobject.GetComponent<NavMeshModifier>().area = 1; (0 = walkable, 1= not walkable, etc)