docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Create a spline

    Splines are paths made up of control points called knots. Segments connect knots to other knots. You can place knots onto the surface of objects or align them to the grid. Knots can include tangents which control the curvature of the segment at that knot.

    Create a new spline

    To create a spline:

    Note

    Before you add a knot to a spline, the spline's default location is 0, 0, 0. After you create the spline's first knot, the spline takes that knot's location.

    1. Do one of the following:

      • In the Scene view, from the Tools overlay, select Create Spline.
      • Go to GameObject > Spline > Draw Splines Tool.
      • In the Hierarchy window, right-click and select Spline > Draw Splines Tool.
    2. Click in the Scene view to create knots for the spline's path to follow. If you want to add a curve to the knot's segment, click and drag to create a knot with tangents.

      Tip

      When you use the Draw Splines Tool, if you click on the surface of a GameObject, the knot snaps to that surface. Otherwise, the knot snaps to the grid.

    3. To exit the Draw Splines Tool, select a tool in the Tools overlay or press Escape.

    Add to an existing spline container

    To add a spline to a GameObject's existing spline container:

    1. In the Scene view, select your spline GameObject.
    2. From the Tools overlay, select the Spline context.
    3. From the Tools overlay, select Create Spline.
    4. Create a new spline. It's added to the existing spline container as a new spline. You can attach it to a knot in the existing spline, or leave it disconnected.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)