docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SelectableKnot

    Implements the ISelectableElement interface. SelectableKnot is used by the spline selection and handles to use tools and handles to manipulate spline elements.

    Implements
    ISelectableElement
    IEquatable<ISelectableElement>
    IEquatable<SelectableKnot>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEditor.Splines
    Assembly: solution.dll
    Syntax
    public struct SelectableKnot : ISelectableElement, IEquatable<ISelectableElement>, IEquatable<SelectableKnot>

    Constructors

    Name Description
    SelectableKnot(SplineInfo, int)

    Creates a SelectableKnot from a SplineInfo and a knot index.

    Properties

    Name Description
    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.

    LocalPosition

    The position of the spline element in local space.

    LocalRotation

    The rotation of the spline element in local space.

    Mode

    The TangentMode associated with a knot.

    Position

    The position of the spline element in world space.

    Rotation

    The rotation of the spline element in world space.

    SplineInfo

    The SplineInfo that describes the spline.

    TangentIn

    The In tangent associated with the knot. The In tangent defines the curvature of the segment that enters the knot.

    TangentOut

    The Out tangent associated with the knot. The Out tangent defines the curvature of the segment that exits the knot.

    Tension

    The tension associated with a knot. Tension is only used if the tangent mode is Auto Smooth.

    Methods

    Name Description
    Equals(object)

    Checks if two instances of an object are equal.

    Equals(ISelectableElement)

    Checks if two instances of SplineElement are equal.

    Equals(SelectableKnot)

    Checks if two instances of SelectableKnot are equal.

    GetBezierKnot(bool)

    Creates the BezierKnot representation associated with a SelectableKnot.

    GetHashCode()

    Gets a hash code for this knot.

    IsValid()

    Checks if the element is valid. For example, checks if the spline is not null and the index is valid.

    SetTangentMode(TangentMode, BezierTangent)

    Sets the tangent mode of the knot.

    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)