Search Unity

Setting Occlussion Portal area and size at runtime?

Discussion in 'General Graphics' started by doodlinbee, Jul 9, 2022.

  1. doodlinbee

    doodlinbee

    Joined:
    Feb 15, 2020
    Posts:
    31
    I want the occlusion portal's center and size to either match a target NavMeshObstacle or BoxCollider or things like that but I can't find the area and size properties in the code so how do I do that without doing it manually?