docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Implements
    ISelectableElement
    IEquatable<ISelectableElement>
    IEquatable<SelectableTangent>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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 SplineElement are equal.

    Equals(SelectableTangent)

    Checks if two instances of SelectableTangent are equal.

    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.

    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)