Follow The Path

Example Script: Follow The Path

The example script, Follow the Path (FollowThePath.cs), which moves a dynamic object along a route of waypoints in a loop. Grab it at the download link at the end of the page.

Here is a step-by-step guide to using the script:

  1. Download the script file from the download link at the end of this article.

  2. Follow the instructions provided in Working with scripts to upload the script and add it to an object.

  3. Open the object's Properties panel and go to the Script Settings section.

  4. On the properties panel, set IsDynamic to On.

  5. At the bottom of the object's properties panel is a Script Settings section. Upon looking at the Script Settings section for FollowThePath, you will see a list of parameters which you can set for the object. Setting values on these parameters can help you set the movement of your object.

  6. Once you have finished setting the parameters for your object, your script is ready! Save and build your scene.

  7. If you want to verify that the script is running correctly, visit the scene once it has been built.

Script parameters

Creative Commons License

Have more questions? Join our Discord!

Last updated