I need to find the navmesh layer of objects during runtime for various reasons.
The way to do this normally is using the GameObjectUtility method GetNavMeshLayer. The problem here is that GameObjectutility is a part of the UnityEditor namespace, which is not available on Android builds.
Does anyone have an idea of how I could grab the layers dynamically without the UnityEditor namespace available? I really don’t want to add a public field with “my navmesh layer” to every object that needs to modify the walkability of it’s own layer.