docs.unity3d.com
    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.

    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:
      • 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.
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023