- Home /
Question by
beets0426 · Jul 14, 2021 at 01:31 AM ·
gameobjectbuttonscripting beginnernavmeshwaypoints
Using a GUI button to set a navmesh waypoint
Hi, I am creating a "tour" type of application where the user can select a location on the map and the player will move from point to point. I am using the navmesh waypoint example from the Learn series, and everything functions smoothly. Player will successfully move from point to point on my desired mesh.
However, I must drag and drop the locations (game objects) into the inspector for each element. How would I go about changing the desired waypoints in a script? My idea is that the user would select a button in the menu and change the waypoints that way, but I'm not sure. Thank you!
buttonquestion.png
(3.1 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613040308im_/https://answers.unity.com/themes/thub/images/avi.jpg)