docs.unity.cn
    Show / Hide Table of Contents

    Struct ItemList.Enumerator

    ItemList.Enumerator for ItemList.

    Namespace: UnityEngine.GameFoundation
    Syntax
    public struct Enumerator : IEnumerator<InventoryItem>, IEnumerator, IDisposable

    Constructors

    Enumerator(ItemList)

    Constructor for ItemList.Enumerator class for this ItemList.

    Declaration
    public Enumerator(ItemList itemList)
    Parameters
    Type Name Description
    ItemList itemList

    Owner of this ItemList.Enumerator.

    Properties

    Current

    Current InventoryItem that this ItemList.Enumerator refers to.

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

    Methods

    Dispose()

    Required method for IEnumerator interface.

    Declaration
    public void Dispose()

    MoveNext()

    Enable foreach functionality for this ItemList.Enumerator for this ItemList.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean

    true if there is another element in the list, else false.

    Reset()

    Reset ItemList.Enumerator to permit iterating this ItemList again from the start.

    Declaration
    public void Reset()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021