I’m making a Building game, and what I’m looking to do is the following;
Instantiate a road that is modelled with a sidewalk (Which is done.) but I need to make the sidewalks the only thing that is ‘walkable’.
Randomly spawn NPCs(this is also done,) but need them to follow the sidewalks ONLY
I’ve used the NavMeshAgent and NavMeshs in the past, however, not Instantiating in runtime.
I’ve seen & tried briefly the NavMeshSurfaces but I don’t think I’m doing it right.
Do you have the examples downloaded for the navmeshsurfaces? Within the examples You’ll find localnavmeshbuilder and localnavmeshsourcetag for procedural generation. That’ll hopefully do the trick.