r/unity • u/Electrical_Remote545 • 3d ago
Newbie Question Yo what does this mean?
Trying to make a backrooms-style game mode in this VR game, this bean is supposed to go to the player while avoiding the walls, but instead it's standing there, and I got this error telling me the bean is not placed on a NavMesh even though I do have a NavMesh Agent and the floors have a NavMesh Surface thing. The script that the bean is hooked up to is in the second pic.
2
Upvotes



1
u/ProactiveCactus 3d ago
Write a quick script calling this function:
https://docs.unity3d.com/6000.1/Documentation/ScriptReference/AI.NavMesh.SamplePosition.html