docs.unity3d.com
    Show / Hide Table of Contents

    Struct TrackableCollection<TTrackable>.Enumerator

    An Enumerator for TTrackables.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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 © 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