Struct SelectableTangent
Represents a struct that implements the ISelectableElement interface. Spline selection uses
SelectableTangent
and handles to easily manipulate spline elements with tools and handles.
Inherited Members
Namespace: UnityEditor.Splines
Assembly: solution.dll
Syntax
public struct SelectableTangent : ISelectableElement, IEquatable<ISelectableElement>, IEquatable<SelectableTangent>
Constructors
Name | Description |
---|---|
SelectableTangent(SplineInfo, int, int) | Creates a new SelectableTangent object. |
SelectableTangent(SplineInfo, int, BezierTangent) | Creates a new SelectableTangent object. |
Properties
Name | Description |
---|---|
Direction | The direction of the tangent in world space. |
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. |
LocalDirection | The direction of the tangent in local space. |
LocalPosition | The position of the spline element in local space. |
OppositeTangent | The opposite tangent on the knot. If this tangent is the In tangent, then the opposite tangent is the Out tangent. If this tangent is the Out tangent, then the opposite tangent is the In tangent. |
Owner | The knot associated with this tangent. |
Position | The position of the spline element in world space. |
SplineInfo | The SplineInfo that describes the spline. |
TangentIndex | The index of the tangent. A value of 0 represents an In tangent. A value of 1 represents an Out tangent. |
Methods
Name | Description |
---|---|
Equals(object) | Checks if two objects are equal. |
Equals(ISelectableElement) | Checks if two instances of a |
Equals(SelectableTangent) | Checks if two instances of |
GetHashCode() | Gets a hash code for this tangent. |
IsValid() | Checks if the element is valid. For example, checks if the spline is not null and the index is valid. |