Spline Level Setup
Create an empty GameObject in the scene and add the Level script to it.

Field “Player path spline” When you click the “Create PlayerPathSpline” button, a spline object is created at the root of the level GameObject. This spline represents the path the player character will follow. The reference to the newly created spline is automatically assigned to the Player path spline field.

After that, you need to configure the spline by laying out the route from the start to the finish of the level. You can find examples in the ready-made levels at:
Assets/StaticAssets/Prefabs/Levels/...

For a quick introduction to working with splines in Unity, you can watch the following video: https://youtu.be/IJbH5OZa_is. This tutorial covers the basics of creating and editing splines using Unity’s built-in tools.
Last updated