Link Groups¶
A Spline Link Group keeps knots from different splines together: move one linked knot and the others follow. It's how separate splines meet at a shared point: every road junction object carries one that holds the road ends together.
A knot can belong to only one link group, and two knots of the same spline can't share a link.
Linking knots¶
- While editing splines, select two or more knots, each on a different spline. They can be in the same Spline Container or in different ones.
- Right-click and choose Link.
The knots move to their average position, halfway between them when there are two, and a new Spline Link object holds them. It's created as a child of the first selected knot's spline object, and is selected for you.
To add another knot to an existing link:
- Click the link's cube in the Scene view to select it.
- Hold Shift and click the knot to add.
- Right-click and choose Link to Selected Knot Link. The knot jumps to the link's position.
Moving linked knots¶
Linked knots can't be selected one by one, only their handles can. Each link is drawn as a small cube where its knots meet: click the cube, or box-select it, to select the link. A link that belongs to a road junction is drawn as the junction's outline raised into a prism instead; its cube stays clickable at the centre. When a road is about to connect to a junction or split another road, the offer shows the footprint the junction will have, with the mouth of the arriving road.
- With a link selected, Unity's Move and Rotate tools move and turn all its knots together.
- Moving the Spline Link object any other way, for example from its Transform in the Inspector, moves its knots too.
- When another tool moves one of the linked knots, the other knots of the link follow it.
Handles of linked knots¶
The handles of linked Bezier knots are still drawn around the link, and you edit them like the handles of any other knot: click one to select it, then move it. A handle belongs to its own knot, so the other knots of the link keep theirs.
While a linked knot's handle is selected, the Position in the Selected Knots panel is read-only: the knot's position belongs to the link.
Editing a link group¶
When you select a link, the Selected Knots panel becomes Selected Link Group:
- It says how many knots are linked, and the Knot list picks one of them. The Scene view highlights the part of that knot's spline next to the link, in the Knot Segment Highlight color of the Spline Settings, green by default.
- The settings below edit the picked knot: its type, handles and rotation. Its position belongs to the link.
- Remove Selected Knot From Link takes the picked knot out of the link.
The link object's own inspector lists its Knots: each entry is a Spline Container, the spline in it (S) and the knot number (K).
Unlinking everything
Delete the Spline Link object to free all its knots at once.
Deleting linked splines¶
When you delete a knot, a spline or a whole object whose knots are linked, those knots leave their links in the same undo step. A Spline Link object left with fewer than two knots is deleted. A road junction is cleaned up the same way. Scenes saved with knots that no longer exist drop them from their links when they open.