docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor SplineRange

    SplineRange(int, int)

    Creates a new SplineRange from a start index and count.

    Declaration
    public SplineRange(int start, int count)
    Parameters
    Type Name Description
    int start

    The inclusive first index of a range.

    int count

    The number of elements this range encompasses. This value might be negative, which is shorthand to call the constructor with an explicit SliceDirection parameter.

    SplineRange(int, int, SliceDirection)

    Creates a new SplineRange from a start index and count.

    Declaration
    public SplineRange(int start, int count, SliceDirection direction)
    Parameters
    Type Name Description
    int start

    The inclusive first index of a range.

    int count

    The number of elements this range encompasses.

    SliceDirection direction

    Whether when iterating this range it is incrementing from start to start + count, or decrementing from start to start - count.

    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)