docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Link and unlink knots

    You can link knots from splines attached to the same Spline component. Linked knots share a position. When you move a knot, its linked knots also move.

    Use linked knots to create a spline with branched paths. For example, you can create a spline that represents the following:

    • A road with merging lanes
    • A river with tributaries
    • A diverging sets of mountain paths.

    You can link knots in the Scene view context menu or with the Draw Splines Tool in the Scene view. Use the Scene view context menu to unlink knots.

    Note

    You can link more than two knots to each other. If you link knots that are already linked to other knots, all the knots link to each other.

    Link knots with the Draw Splines Tool

    To create a linked knot with the Draw Splines Tool:

    1. In the Hierarchy window or Scene view, select a GameObject with a Spline component.

    2. In the Tools overlay, set the tool context to Spline.

    3. In the Tools overlay, select the Draw Splines Tool.
    4. Select a knot that has two segments to create a knot that links to it. The new knot is the first knot of a new spline.
    Note

    If you use the Draw Splines Tool to create a knot on a linked knot, then that new knot is added to the existing link.

    Link knots in the Scene view context menu

    To link knots in the Scene view context menu:

    1. In the Hierarchy window or Scene view, select a GameObject with a Spline component.

    2. In the Tools overlay, set the tool context to Spline.

    3. Select at least two knots.
    4. In the Scene view, right-click to open the context menu.
    5. In the Scene view context menu, select Link Knots.

    Unlink knots

    To unlink knots:

    1. In the Hierarchy window or Scene view, select a GameObject with a Spline component.

    2. In the Tools overlay, set the tool context to Spline.

    3. Select a linked knot.
    4. In the Scene view, right-click to open the context menu.
    5. In the Scene view context menu, select Unlink Knots.

    Additional resources

    • Knots
    In This Article
    Back to top
    Copyright © 2024 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)