docs.unity3d.com
    Show / Hide Table of Contents

    Struct TrackableCollection<TTrackable>.Enumerator

    An Enumerator for TTrackables.

    Namespace: UnityEngine.XR.ARFoundation
    Syntax
    public struct Enumerator

    Constructors

    Enumerator(Dictionary<TrackableId, TTrackable>)

    Constructs an Enumerator for use with TTrackables.

    Declaration
    public Enumerator(Dictionary<TrackableId, TTrackable> trackables)
    Parameters
    Type Name Description
    Dictionary<TrackableId, TTrackable> trackables

    A Dictionary of TTrackables.

    Properties

    Current

    The current value in the collection.

    Declaration
    public readonly TTrackable Current { get; }
    Property Value
    Type Description
    TTrackable

    Methods

    Dispose()

    Releases all resources used by this Enumerator.

    Declaration
    public void Dispose()

    MoveNext()

    Moves to the next trackable in the collection.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean

    true if the next trackable is valid, or false if it is the end of the collection.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, January 7, 2022
    Terms of use