I’m trying to calculate a path specifying an areaMask I can’t seem to make any sense of it.
Using AllAreas works fine:
NavMesh.CalculatePath(transform.position, targetObject.transform.position,NavMesh.AllAreas, path);
If I have the following Areas set up, how would I specify the use the area “Road”?
If I manually set the area mask to “Road” and query it the int value is 16 but I don’t understand how this is derived.
Any help?
I searched for documentation but did not find anything.
Thank you.