docs.unity3d.com
    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
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023