How to implement a Waypoint script in Unity
Author: Bill Trikojus
This tutorial shows how to implement the provided waypoint script in Unity and customise its parameters. The script is used to make non player characters (NPCs) wander around the world. You can preset points or let the script randomly generate the points around the character's starting position.
To work along with the tutorial you should first download the Waypoint assets Unity package.
You can also download the finished example project here.
When you are happy with the script and ready to do your build, make sure you hide the points by turning off the mesh renderer in the Point prefab.
After creating this tutorial I made some adjustments to the script. Part 2 of this tutorial covers the changes made and utilises an updated Unity package which can be downloaded here. You should watch Part 1 before watching Part 2.
Share
Like this? Click a link below to share it...Subscribe and Download

Comments
2011-04-17: Stingerblue said:Thanks for these :).
2011-05-01: Kee won kim said:
very cool video!!
thanks man~!!
2011-11-08: SpritWebb said:
Is there a way to get this to work with a space game? I have enemies I would love to have move around using this system, but when I turn gravity off on the points, the ships disappear...any advice on how to implement this where there is no ground?
2012-04-27: Jan said:
Thanks for a great tutorial! One of the best out there ragarding waypoints! Keep up the good work
Post a comment
Garbage posts and SPAM will be deleted.