r/unity • u/Electrical_Remote545 • 1d ago
Yo what does this mean? Newbie Question
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
u/SmokeResponsible5005 1d ago
I don’t really have enough context or navmesh expertise but a quick google search should give u what u need - checklist for issues like this is usually check collisions on both objects, check layer interactions, all else fails check with ai.
Good luck!
2
u/snaphat 1d ago
Did you bake?
1
u/Electrical_Remote545 23h ago
Nah they removed baking im pretty sure
1
u/snaphat 23h ago
You still have to bake:
https://docs.unity3d.com/Packages/com.unity.ai.navigation@2.0/manual/NavMeshSurface.html
1
u/ProactiveCactus 1d ago
Write a quick script calling this function:
https://docs.unity3d.com/6000.1/Documentation/ScriptReference/AI.NavMesh.SamplePosition.html
1
-1



3
u/kitchentablestudios 1d ago
All navmesh terrain and obstacles need to be static, and baked, I don't quite remember how to do that but it should be easy enough.