Skip to main content

Example Scenes

Everything discussed in this documentation as well as all features are also demonstrated in example scenes, plus a lot more! Runtime access, events or 2D usage and custom hacking of movement scripts are just a few to name here. Please see below for a short content overview on each scene.

01 Splines

Demonstrates different PathTypes and LoopTypes using splineMove on a PathManager.

02 Bezier

Demonstrates different PathTypes and LoopTypes using splineMove on a BezierPathManager.

03 Navmesh

Demonstrates different PathTypes and LoopTypes using navMove on a PathManager.

04 Advanced

Contains an example for the LookAhead value (see Rotation chapter), a sample for local paths (object moving on a rotating or moving path), as well as few samples for 2D use-cases.

05 Events

This scene makes use of events at either a waypoint using a built-in method simply by assigning it in the inspector and a self-written method. The last example is not directly using events, but shows that you can also invoke a method at any point on the path just by using a collision trigger.

06 Path Input

In this example, a tween is created and immediately paused. This is because we do not want the object to move automatically, but on user input. With the tween created, we can manipulate the object's fullPosition along the path, effectively simulating a moving object using arrow keys.

07 Runtime

Includes most common method calls on movement scripts like Start/Stop, Pause/Resume and changing speed, but also how to instantiate an object on a path, switching from one path to another and creating a path using Vector3 positions from scratch.

08 Camera Input

Shows how to let an object (in this case the camera) move on path, waiting at each waypoint and only continuing with a button press.

09 Rapid Input

Manipulates speed on a movement script in a coroutine, accelerating with fast button presses and otherwise slow down and come to a halt.

10 Waypoint Rotation

Showcases fully custom rotation (see Rotation chapter) on a Bezier/PathManager. Select a PathManager component to have it display the rotation direction on the path, or rotate its waypoints to see the outcome.