docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SplineRange.SplineRangeEnumerator

    A struct for iterating a SplineRange.

    Implements
    IEnumerator<int>
    IEnumerator
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Splines
    Assembly: Unity.Splines.dll
    Syntax
    public struct SplineRange.SplineRangeEnumerator : IEnumerator<int>, IEnumerator, IDisposable

    Constructors

    SplineRangeEnumerator(SplineRange)

    Constructor for an IEnumerator of a SplineRange.

    Declaration
    public SplineRangeEnumerator(SplineRange range)
    Parameters
    Type Name Description
    SplineRange range

    The SplineRange to iterate.

    Properties

    Current

    Gets the element in the collection at the current position of the enumerator.

    Declaration
    public int Current { get; }
    Property Value
    Type Description
    int

    Methods

    Dispose()

    IDisposable implementation. SplineSliceEnumerator does not allocate any resources.

    Declaration
    public void Dispose()

    MoveNext()

    Advances the enumerator to the next element of the collection.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    bool

    Returns true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

    Reset()

    Sets the enumerator to its initial position, which is before the first element in the collection.

    Declaration
    public void Reset()

    Implements

    IEnumerator<T>
    IEnumerator
    IDisposable
    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)