Interface ISelectableElement
An interface that represents a selectable spline element. A selectable spline element can be a knot or a tangent.
ISelectableElement
is used by the selection to get information about the spline, the knot, and the positions of the spline elements.
Inherited Members
Namespace: UnityEditor.Splines
Syntax
public interface ISelectableElement : IEquatable<ISelectableElement>
Properties
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.
Declaration
int KnotIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
LocalPosition
The position of the spline element in local space.
Declaration
float3 LocalPosition { get; set; }
Property Value
Type | Description |
---|---|
float3 |
Position
The position of the spline element in world space.
Declaration
float3 Position { get; set; }
Property Value
Type | Description |
---|---|
float3 |
SplineInfo
The SplineInfo that describes the spline.
Declaration
SplineInfo SplineInfo { get; }
Property Value
Type | Description |
---|---|
SplineInfo |
Methods
IsValid()
Checks if the element is valid. For example, checks if the spline is not null and the index is valid.
Declaration
bool IsValid()
Returns
Type | Description |
---|---|
Boolean | Returns true if all fields from the element have valid values. |