docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SplineKnotIndex

    Provides a tuple to define a couple (Spline index, Knot index) that identifies a particular knot on a spline. This tuple is used by KnotLinkCollection to maintain links between knots.

    Implements
    IEquatable<SplineKnotIndex>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct SplineKnotIndex : IEquatable<SplineKnotIndex>

    Constructors

    Name Description
    SplineKnotIndex(int, int)

    Creates a new SplineKnotIndex to reference a knot.

    Fields

    Name Description
    Invalid

    Represents the default value for an invalid index.

    Knot

    The index of the knot in the spline.

    Spline

    The index of the spline in the Splines.

    Methods

    Name Description
    Equals(object)

    Checks if two indices are equal.

    Equals(SplineKnotIndex)

    Checks if two indices are equal.

    GetHashCode()

    Gets a hash code for this SplineKnotIndex.

    IsValid()

    Checks if an index is greater than or equal to 0.

    ToString()

    Gets a string representation of a SplineKnotIndex.

    Operators

    Name Description
    operator ==(SplineKnotIndex, SplineKnotIndex)

    Checks if two indices are equal.

    operator !=(SplineKnotIndex, SplineKnotIndex)

    Checks if two indices are not equal.

    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)