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:
In the Hierarchy window or Scene view, select a GameObject with a Spline component.
In the Tools overlay, set the tool context to Spline.
- In the Tools overlay, select the Draw Splines Tool.
- 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:
In the Hierarchy window or Scene view, select a GameObject with a Spline component.
In the Tools overlay, set the tool context to Spline.
- Select at least two knots.
- In the Scene view, right-click to open the context menu.
- In the Scene view context menu, select Link Knots.
Unlink knots
To unlink knots:
In the Hierarchy window or Scene view, select a GameObject with a Spline component.
In the Tools overlay, set the tool context to Spline.
- Select a linked knot.
- In the Scene view, right-click to open the context menu.
- In the Scene view context menu, select Unlink Knots.