To just use splines from general code, instantiate Spline2D and call its AddPoint methods etc to build the spline. To use a spline in a scene & save it, use Spline2DComponent as a regular Unity component. There is a inspector with buttons to add/remove points, and you can select points and drag them around to change the curve.. "/>
A spline who was only 60 lines. Unity had none, and that’s no fun. So I went and added mine. It does numbers and colors and vectors just fine. But don’t get too wild when using unsigned. I made only one weight scheme, So please don’t hate me. If your output becomes four-billion, two-hundred ninety-four million, nine-hundred sixty-seven ...
With the Knot Placement tool active, add points to the spline by clicking in the Scene View. Press the Escape or Enter/Return key to finish placing points. To edit a Spline, open the Spline Tool Context by selecting a SplineContainer and toggling the Tool Context (in the Scene View Tools Toolbar) to Spline. Extending Splines
Splines The Spline package is split into two parts : Editor spline representation and tools that can be plugged into any data representation by creating a converter. Basic spline implementation that should cover most use cases. For an introduction to the Spline package, see Getting started with Splines.
Projected path following for simple followers. Advanced Events system. Spline projection into mesh. API to Create splines at runtime. Custom Editor and Use of Unity Reorderable lists. Import/Export spline data (.SP files). Copy/Past spline data between Spline Plus game objects. Full source code included. Detailed Documentation.
The 2D feature set is a comprehensive set of tools for building 2D experiences in Unity. This includes 2D foundations, worldbuilding, animation, graphics, and physics.