- Home /
Question by
it_master · Aug 01, 2020 at 11:31 AM ·
androidunity 5programmingaugmented-realityaugmented reality
'Failed to create agent' error made even after building the NavMesh in real time - AR Foundation
I am creating a NavMesh in runtime so that I would be able to create a path for the enemy AI, the problem however is that while the NavMesh generation worked outside of AR (I made a script that would build the NavMesh with objects in the prefab). But when I used the prefab inside of the AR in AR Foundation, things got a bit glitchy as even though I made sure that the Nav Mesh Generation is set to run at every frame the prefab existed, the error that "Failed to create agent because it is not close enough to the NavMesh" still exists, even though the error didn't appear when I removed the AR Component.
What's the problem with the NavMesh in AR Foundation?
Thanks in advance.
Comment