About Splines
Work with curves and paths. Use the Splines package to generate objects and behaviors along paths, create trajectories, and draw shapes.
The Splines package contains:
- The tools to create and manipulate splines in the Unity Editor.
- The framework to customize the standard spline editing tools in this package.
- A standard data format and storage model for commonly used splines.
- Samples of implementations that address common spline use cases, such as creating a road, animating a GameObject's position and rotation along a spline, instantiating prefabs along a spline to create environments, and more.
Supported Unity versions
Splines is supported in Unity version 2022.3 and later.
Install Splines
Before you can use Splines, you must install the Splines package from the Package Manager.
To install this package, follow the instructions in the Package Manager documentation.
Import Splines samples
The Splines package contains sample scenes that demonstrate different use cases for splines.
To import these sample scenes, you must install the Splines package.
To import sample scenes from the Splines package:
- Go to Window > Package Manager to open the Package Manager.
- In the Package Manager, select Splines.
- Expand the Samples section.
- Next to Spline Examples, select Import.