docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class KnotLinkCollection

    A collection of KnotLinks to track how spline knots are linked and the utilities to update these links when splines are modified.

    Inheritance
    object
    KnotLinkCollection
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    [Serializable]
    public sealed class KnotLinkCollection

    Properties

    Name Description
    Count

    How many KnotLinks the collection contains.

    Methods

    Name Description
    Clear()

    Clears all the links in the collection.

    GetKnotLinks(SplineKnotIndex)

    Gets the knots linked to a specific knot.

    KnotIndexChanged(int, int, int)

    Updates the KnotLinkCollection indices after a knot index changes.

    KnotIndexChanged(SplineKnotIndex, SplineKnotIndex)

    Updates the KnotLinkCollection indices after a knot index changes.

    KnotInserted(int, int)

    Updates the KnotLinkCollection indices after a knot has been inserted.

    KnotInserted(SplineKnotIndex)

    Updates the KnotLinkCollection indices after a knot has been inserted.

    KnotRemoved(int, int)

    Updates the KnotLinkCollection indices after a knot has been removed.

    KnotRemoved(SplineKnotIndex)

    Updates the KnotLinkCollection indices after a knot has been removed.

    Link(SplineKnotIndex, SplineKnotIndex)

    Links two knots positions to each other. If you link knots that are already linked to other knots, then all of the knots link to each other.

    ShiftKnotIndices(SplineKnotIndex, int)

    Changes the indices of the KnotLinkCollection to ensure they are valid. This is mainly used when splines or knots are inserted or removed from a SplineContainer.

    SplineIndexChanged(int, int)

    Updates the KnotLinkCollection indices after a spline index changes.

    SplineRemoved(int)

    Updates the KnotLinkCollection after a spline is removed.

    TryGetKnotLinks(SplineKnotIndex, out IReadOnlyList<SplineKnotIndex>)

    Gets the knots linked to a specific knot.

    Unlink(SplineKnotIndex)

    Unlinks a knot from the knots it is linked to. This method unlinks the knot specified, but does not unlink the other knots from each other.

    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)