Class KnotLinkCollection
A collection of KnotLinks to track how spline knots are linked and the utilities to update these links when splines are modified.
Inherited Members
Namespace: UnityEngine .Splines
Assembly: solution.dll
Syntax
[Serializable]
public sealed class KnotLinkCollection
Properties
Name | Description |
---|---|
Count | How many KnotLinks the collection contains. |
Methods
Name | Description |
---|---|
Clear() | Clears all the links in the collection. |
Get |
Gets the knots linked to a specific knot. |
Knot |
Updates the KnotLinkCollection indices after a knot index changes. |
Knot |
Updates the KnotLinkCollection indices after a knot index changes. |
Knot |
Updates the KnotLinkCollection indices after a knot has been inserted. |
Knot |
Updates the KnotLinkCollection indices after a knot has been inserted. |
Knot |
Updates the KnotLinkCollection indices after a knot has been removed. |
Knot |
Updates the KnotLinkCollection indices after a knot has been removed. |
Link(Spline |
Links two knots positions to each other. If you link knots that are already linked to other knots, then all of the knots link to each other. |
Shift |
Changes the indices of the KnotLinkCollection to ensure they are valid. This is mainly used when splines or
knots are inserted or removed from a Spline |
Spline |
Updates the KnotLinkCollection indices after a spline index changes. |
Spline |
Updates the KnotLinkCollection after a spline is removed. |
Try |
Gets the knots linked to a specific knot. |
Unlink(Spline |
Unlinks a knot from the knots it is linked to. This method unlinks the knot specified, but does not unlink the other knots from each other. |