docs.unity.cn
    Show / Hide Table of Contents

    Method GetEnumerator

    GetEnumerator()

    Provides an enumerator for iterating over the buffer elements.

    Declaration
    public NativeArray<T>.Enumerator GetEnumerator()
    Returns
    Type Description
    Unity.Collections.NativeArray.Enumerator<>

    The enumerator.

    Examples
            foreach (var element in buffer)
            {
                //Use element...
            }
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use