Scripts
Movement on a path takes nothing more than a movement script attached to your object. Assign the desired path to the path container of your movement script, play around with its settings until you are satisfied and you’re good to go!
You have the choice between different movement scripts, depending on your app design. They are built on the same base interface, but each one has a few different functions to consider. Choose the movement script that best fits your requirements!
Please have a look at the Scripting Reference for an overview and explanation of all public variables and methods.
splineMove
Topic | Description |
---|---|
Objective | Linear or curved movement on standard and bezier paths. |
Engine | DOTween |
Concept | Mostly fixed paths played back one or multiple times like animations |
Runtime | Any changes on path waypoints require the movement script to be restarted |
Use Cases | Camera paths, moving platforms, vehicles, background animations, core gameplay, ... |
navMove
Topic | Description |
---|---|
Objective | NavMesh and NavMeshAgent movement for standard paths. |
Engine | Unity Navigation |
Concept | Dynamic path movement using Unity's pathfinding system |
Runtime | Major changes on path waypoints require the movement script to be restarted |
Use Cases | Patrolling AI, chase behavior, pedestrian simulation, ... |