docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    IEquatable<ISelectableElement>.Equals(ISelectableElement)
    Namespace: UnityEditor.Splines
    Assembly: Unity.Splines.Editor.dll
    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
    int

    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
    bool

    Returns true if all fields from the element have valid values.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)