Open XardoX opened 2 years ago
I have one that can work together with NaughtyAttributes installed:
[NavMeshAreaMask]
public int areaMask;
[NavMeshArea] // then you can use `areaSingleMask1 | areaSingleMask2` to get multiple masks
public int areaSingleMask;
[NavMeshArea(false)] // then you can use `1 << areaValue` to get areaSingleMask
public int areaValue;
[NavMeshArea] // then you can use `NavMesh.GetAreaFromName(areaName)` to get areaValue
public int areaName;
It would be nice to add NavMeshArea attribute that works just like Layer attribute