docs.unity3d.com
    Show / Hide Table of Contents

    Struct SplineRange.SplineRangeEnumerator

    A struct for iterating a SplineRange.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Splines
    Syntax
    public struct SplineRangeEnumerator : IEnumerator<int>, IDisposable, IEnumerator

    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 readonly int Current { get; }
    Property Value
    Type Description
    Int32
    Implements
    IEnumerator<T>.Current

    Methods

    Dispose()

    IDisposable implementation. SplineSliceEnumerator does not allocate any resources.

    Declaration
    public void Dispose()
    Implements
    IDisposable.Dispose()

    MoveNext()

    Advances the enumerator to the next element of the collection.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean
    Implements
    IEnumerator.MoveNext()

    Reset()

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

    Declaration
    public void Reset()
    Implements
    IEnumerator.Reset()

    Explicit Interface Implementations

    IEnumerator.Current

    Declaration
    readonly object IEnumerator.Current { get; }
    Returns
    Type Description
    Object
    Implements
    IEnumerator.Current
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023