docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property this

    this[int]

    Get or set the Spline knot index at an index index. This indexer allows you to write a for loop to iterate through a range without needing to know in which direction the range is iterating.

    // Create a new range into an existing Spline starting at knot 5, and interpolating the span of 3 knots.
    // range[0,1,2] will map to { 6, 5, 4 } respectively.
    var range = new SplineRange(6, 3, SplineDirection.Backward);
    Declaration
    public int this[int index] { get; }
    Parameters
    Type Name Description
    int index

    The zero-based index of the element to get or set.

    Property Value
    Type Description
    int
    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)