Link and unlink knots
In a GameObject with a Spline Container, you can link knots from disconnected splines or on the same spline. Linked knots share a position, so when you move one linked knot, all the knots it links to 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 Element Inspector overlay or with the Draw Splines Tool in the Scene view. Use the Element Inspector overlay 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 spline.
- 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.
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 Element Inspector
To link knots in the Element Inspector:
- In the Hierarchy window or Scene view, select a spline.
- In the Tools overlay, set the tool context to Spline.
- Select at least two knots.
- In the Element Inspector overlay, select Link.
Unlink knots
To unlink knots:
- In the Hierarchy window or Scene view, select a spline.
- In the Tools overlay, set the tool context to Spline.
- Select a linked knot.
- In the Element Inspect overlay, select Unlink.