Struct SelectableKnot
Implements the ISelectableElement interface. SelectableKnot is used by the spline selection and handles to use tools and handles to manipulate spline elements.
Inherited Members
Namespace: UnityEditor.Splines
Assembly: solution.dll
Syntax
public struct SelectableKnot : ISelectableElement, IEquatable<ISelectableElement>, IEquatable<SelectableKnot>
Constructors
Name | Description |
---|---|
SelectableKnot(SplineInfo, int) | Creates a SelectableKnot from a SplineInfo and a knot index. |
Properties
Name | Description |
---|---|
KnotIndex | The index of the knot in the spline. If the spline element is a tangent, this is the index of the knot that the tangent is attached to. |
LocalPosition | The position of the spline element in local space. |
LocalRotation | The rotation of the spline element in local space. |
Mode | The TangentMode associated with a knot. |
Position | The position of the spline element in world space. |
Rotation | The rotation of the spline element in world space. |
SplineInfo | The SplineInfo that describes the spline. |
TangentIn | The In tangent associated with the knot. The In tangent defines the curvature of the segment that enters the knot. |
TangentOut | The Out tangent associated with the knot. The Out tangent defines the curvature of the segment that exits the knot. |
Tension | The tension associated with a knot. |
Methods
Name | Description |
---|---|
Equals(object) | Checks if two instances of an object are equal. |
Equals(ISelectableElement) | Checks if two instances of |
Equals(SelectableKnot) | Checks if two instances of SelectableKnot are equal. |
GetBezierKnot(bool) | Creates the BezierKnot representation associated with a SelectableKnot. |
GetHashCode() | Gets a hash code for this knot. |
IsValid() | Checks if the element is valid. For example, checks if the spline is not null and the index is valid. |
SetTangentMode(TangentMode, BezierTangent) | Sets the tangent mode of the knot. |